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

前端 未结 7 1147
有刺的猬
有刺的猬 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 07:51

    Add

    spark.driver.extraJavaOptions=-Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttps.proxyHost= -Dhttps.proxyPort=
    

    to $SPARK_HOME/conf/spark-defaults.conf works for me.

提交回复
热议问题