Skip to content

Add support for custom headers and cookies in HDFS provider #35777

@makrushin-evgenii

Description

@makrushin-evgenii

Description

This will make it possible to configure HDFS client via Apache Knox gateway, which requires cookies with hadoop-jwt token:

requests_session = requests.Session()
requests_session.cookies.update({'hadoop-jwt': '***'})
hdfs_client = hdfs.InsecureClient("https://***/gateway/staging/webhdfs/v1", session=requests_session)

Use case/motivation

Configure HDFS connection via Apache Knox gateway

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions