【发布时间】:2015-10-28 18:15:04
【问题描述】:
我正在尝试在我的 macbook air 上运行 pyspark。当我尝试启动它时,我得到了错误:
Exception: Java gateway process exited before sending the driver its port number
当 sc = SparkContext() 在启动时被调用。我试过运行以下命令:
./bin/pyspark
./bin/spark-shell
export PYSPARK_SUBMIT_ARGS="--master local[2] pyspark-shell"
无济于事。我也看过这里:
Spark + Python - Java gateway process exited before sending the driver its port number?
但这个问题从未得到解答。请帮忙!谢谢。
【问题讨论】:
-
你使用什么版本的 spark?
-
我通过下载不同的 spark 压缩包解决了上述问题。
-
见我的 cmets-stackoverflow.com/questions/31841509/…
-
除了@mt88 的评论,spark-1.6.0-bin-without-hadoop.tgz 会产生上述异常,但 spark-1.6.0-bin-hadoop2.6.tgz 不会在 Ubuntu 15.04 上对我来说
标签: java python macos apache-spark pyspark