You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional Java options are added to the Spark submit job, the Spark driver, the Spark executor, and the Spark history server, e.g. to set the log4j configuration file or the classpath.
Spark submit job
The Java options of the Spark submit job are set with the environment variable SPARK_SUBMIT_OPTS. Using this environment variable is the only way in cluster mode. Unfortunately it is not part of the public API but the logging integration test will break if this will ever be changed. The user cannot override this environment variable in the cluster specification.
Spark driver
The Java options of the Spark driver are set with the configuration spark.driver.defaultJavaOptions. The user can add extra Java options with spark.driver.extraJavaOptions in the cluster specification at spec.sparkConf. The Spark configuration contains both options and is located in the file spark.properties in a generated ConfigMap named spark-drv-<hash>-conf-map. This configuration file is then used in the driver:
The Java options of the Spark executor are set with the configuration spark.executor.defaultJavaOptions. The user can add extra Java options with spark.executor.extraJavaOptions in the cluster specification at spec.sparkConf. Both options are added to the command line of the executor:
The Java options of the Spark history server are set with the environment variable SPARK_HISTORY_OPTS. This environment variable cannot be overriden by the user.
The text was updated successfully, but these errors were encountered:
See stackabletech/hbase-operator#291 and stackabletech/docker-images#283 for reference.
This is part of stackabletech/issues#288
Implementation details
Additional Java options are added to the Spark submit job, the Spark driver, the Spark executor, and the Spark history server, e.g. to set the log4j configuration file or the classpath.
Spark submit job
The Java options of the Spark submit job are set with the environment variable
SPARK_SUBMIT_OPTS
. Using this environment variable is the only way in cluster mode. Unfortunately it is not part of the public API but the logging integration test will break if this will ever be changed. The user cannot override this environment variable in the cluster specification.Spark driver
The Java options of the Spark driver are set with the configuration
spark.driver.defaultJavaOptions
. The user can add extra Java options withspark.driver.extraJavaOptions
in the cluster specification atspec.sparkConf
. The Spark configuration contains both options and is located in the filespark.properties
in a generated ConfigMap namedspark-drv-<hash>-conf-map
. This configuration file is then used in the driver:Spark executor
The Java options of the Spark executor are set with the configuration
spark.executor.defaultJavaOptions
. The user can add extra Java options withspark.executor.extraJavaOptions
in the cluster specification atspec.sparkConf
. Both options are added to the command line of the executor:Spark history server
The Java options of the Spark history server are set with the environment variable
SPARK_HISTORY_OPTS
. This environment variable cannot be overriden by the user.The text was updated successfully, but these errors were encountered: