Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify Spark properties when starting Spark History Server?

Tags:

apache-spark

Does anyone know how to set values in the SparkConf when starting the Spark History Server?

like image 474
user422930 Avatar asked Dec 27 '25 16:12

user422930


1 Answers

if you are using <SPARK_HOME>/sbin/start-history-server.sh then you cannot specify command line argument but you can specify SPARK_HISTORY_OPTS as environment variable and specify the various environment variables like: -

export SPARK_HISTORY_OPTS="$SPARK_HISTORY_OPTS -Dspark.history.ui.port=9000

but if you are using <SPARK_HOME>/sbin/start-daemon.sh script then you can specify multiple command line options. like this: -

<SPARK_HOME>/sbin/spark-daemon.sh start org.apache.spark.deploy.history.HistoryServer -Dspark.history.ui.port=9000

like image 52
Sumit Avatar answered Dec 30 '25 19:12

Sumit