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

后端 未结 6 2019
轻奢々
轻奢々 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:18

    If you are using pyspark, use the config method to set the host driver to localhost.

    spark = (SparkSession
                  .builder
                  .appName( "temp1" )
                  .config( "spark.driver.host", "localhost" )
                  .getOrCreate()
                  )
    

提交回复
热议问题