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?
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).
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>
conf/spark-env.sh.template
conf/spark-env.sh
SPARK_MASTER_WEBUI_PORT=<your preferred port>
-webui-port
/sbin/start-master.sh --webui-port PORT
: conf/spark-env.sh.template conf/spark-env.sh : , , SPARK_MASTER_WEBUI_PORT = PORT