How can I change the spark port?

I installed a spark on the cluster, and I also have a marathon, both located on port 8080. How can I change the default spark port?

+4
source share
2 answers

See http://spark.apache.org/docs/latest/spark-standalone.html :

You can also further configure the cluster by setting environment variables in conf / spark-env.sh. Create this file starting with conf / spark-env.sh.template and copy it to all working machines for the settings to take effect. The following settings are available:

...

SPARK_MASTER_WEBUI_PORT - Port for the main web interface (default: 8080).

So - copy conf/spark-env.sh.templateto conf/spark-env.shand edit it to include:SPARK_MASTER_WEBUI_PORT=<your preferred port>

+6

-webui-port

/sbin/start-master.sh --webui-port PORT

: conf/spark-env.sh.template conf/spark-env.sh : , , SPARK_MASTER_WEBUI_PORT = PORT

+4

All Articles