Skip to content

SOCKS proxy support #108

@daniel-dylag-openx

Description

@daniel-dylag-openx

Hi,
in my organization the Hadoop cluster is in an internal network in GCP and access to VM ports from developer's machine is only possible via SOCKS proxy.

If you can connect directly you can just do this:

hs = HistoryServer('http://my-history-server:19888')
app_information = hs.application_information()

With SOCKS the only way to get this response is to use lower level method:

hs = HistoryServer('http://my-history-server:19888')
app_information = hs.request('/ws/v1/history/info', proxies=dict(http='socks5h://socks-proxy:1080'))

But I would like to be able to just call it like this:

hs = HistoryServer('http://my-history-server:19888', proxies=dict(http='socks5h://socks-proxy:1080'))
app_information = hs.application_information()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions