Mac spark-shell Error initializing SparkContext

前端 未结 12 1078
礼貌的吻别
礼貌的吻别 2020-12-07 09:26

I tried to start spark 1.6.0 (spark-1.6.0-bin-hadoop2.4) on Mac OS Yosemite 10.10.5 using

\"./bin/spark-shell\". 

It has the error below.

12条回答
  •  余生分开走
    2020-12-07 10:01

    In Mac,Check IP in System Preference -> Network -> click the Wifi you are connected(it should show green icon) -> check the IP just above your Network Name.

    Make following entry in ../conf/spark-env.sh :

    SPARK_MASTER_HOST=<>
    SPARK_LOCAL_IP=<>
    

    and than try spark-shell. Doing above changes worked for me.

提交回复
热议问题