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

前端 未结 7 1112
有刺的猬
有刺的猬 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:11

    On windows 7 with spark-2.0.0-bin-hadoop2.7 I set the spark.driver.extraJavaOptions in %SPARK_HOME%"\spark-2.0.0-bin-hadoop2.7\conf\spark-defaults.conf like:

    spark.driver.extraJavaOptions -Dhttp.proxyHost=hostname -Dhttp.proxyPort=port -Dhttps.proxyHost=host -Dhttps.proxyPort=port
    

提交回复
热议问题