How to resolve external packages with spark-shell when behind a corporate proxy?

前端 未结 7 1150
有刺的猬
有刺的猬 2020-12-15 07:20

I would like to run spark-shell with a external package behind a corporate proxy. Unfortunately external packages passed via --packages option are not resolved.

7条回答
  •  无人及你
    2020-12-15 08:05

    If proxy is correctly configured on your OS, you can use the java property: java.net.useSystemProxies:

    --conf "spark.driver.extraJavaOptions=-Djava.net.useSystemProxies=true"

    so proxy host / port and no-proxy hosts will be configured.

提交回复
热议问题