spark submit “Service 'Driver' could not bind on port” error

前端 未结 9 2033
醉酒成梦
醉酒成梦 2021-01-04 20:49

I used the following command to run the spark java example of wordcount:-

time spark-submit --deploy-mode cluster --master spark://192.168.0.7:6066 --class o         


        
9条回答
  •  情书的邮戳
    2021-01-04 21:36

    I am using Maven/SBT to manage dependencies and the Spark core is contained in a jar file.

    You can override the SPARK_LOCAL_IP at runtime by setting the "spark.driver.bindAddress" (here in Scala):

    val config = new SparkConf()
    config.setMaster("local[*]")
    config.setAppName("Test App")
    config.set("spark.driver.bindAddress", "127.0.0.1")
    val sc = new SparkContext(config)
    

提交回复
热议问题