Spark fails to start in local mode when disconnected [Possible bug in handling IPv6 in Spark??]

后端 未结 6 2073
轻奢々
轻奢々 2021-02-05 16:53

The problem is the same as described here Error when starting spark-shell local on Mac

... but I have failed to find a solution. I also used to get the malformed URI err

6条回答
  •  自闭症患者
    2021-02-05 17:23

    I faced the same issue while using the SharedSparkContext with my tests. Adding those two lines (in my beforeAll method) as @dennis suggested solved the problem for me :

      override def beforeAll(): Unit = {
        super.beforeAll()
        sc.getConf.setMaster("local").set("spark.driver.host", "localhost")
      }
    

    I hope this will be solved in the next versions of Spark.

提交回复
热议问题