How do I change the spark.ui.port?

前端 未结 1 936
梦毁少年i
梦毁少年i 2021-02-09 05:01

I am using spark-submit and tried to do this in the jar file with .setExecutorEnv(\"spark.ui.port\", \"4050\") on the spark context, but it still tried to hit 4040.

相关标签:
1条回答
  • 2021-02-09 06:00

    --conf spark.ui.port=4050 is a Spark 1.1 feature. You can set it in your codes, such as:

    val conf = new SparkConf().setAppName(s"SimpleApp").set("spark.ui.port", "4050")
    val sc = new SparkContext(conf)
    
    0 讨论(0)
提交回复
热议问题