我已经在群集上安装了spark,并且也进行了马拉松比赛,两者都在端口8080中,如何更改spark-ui的默认端口?
最佳答案
参见http://spark.apache.org/docs/latest/spark-standalone.html:
You can optionally configure the cluster further by setting environment variables in conf/spark-env.sh. Create this file by starting with the conf/spark-env.sh.template, and copy it to all your worker machines for the settings to take effect. The following settings are available:
...
SPARK_MASTER_WEBUI_PORT - Port for the master web UI (default: 8080).
所以-将
conf/spark-env.sh.template
复制到conf/spark-env.sh
,并对其进行编辑以包括:SPARK_MASTER_WEBUI_PORT=<your preferred port>
关于apache-spark - 如何更改Spark ui端口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36083783/