Reputation: 6558
I have installed spark on a cluster, and I have marathon too, both are in the port 8080, How can I change the spark-ui default port?
Upvotes: 8
Views: 23396
Reputation: 37822
See 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).
So - copy conf/spark-env.sh.template
to conf/spark-env.sh
, and edit it to include: SPARK_MASTER_WEBUI_PORT=<your preferred port>
Upvotes: 12
Reputation: 949
just add a --webui-port argument when starting the master
/sbin/start-master.sh --webui-port PORT
alternatively you can define your clusters settings in a config file: create a copy of conf/spark-env.sh.template as conf/spark-env.sh and add your settings there: the one you need now is SPARK_MASTER_WEBUI_PORT=PORT
Upvotes: 8