Skip to content

Commit 36cc891

Browse files
committed
Make spark-submit a configurable cli
PNDA-4511
1 parent 3c25ca5 commit 36cc891

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/src/main/resources/plugins/systemd.service.py.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ WorkingDirectory=/opt/${environment_namespace}/${component_application}/${compon
88
ExecStartPre=/opt/${environment_namespace}/${component_application}/${component_name}/yarn-kill.py
99
ExecStopPost=/opt/${environment_namespace}/${component_application}/${component_name}/yarn-kill.py
1010
Environment=SPARK_MAJOR_VERSION=${component_spark_version}
11-
ExecStart=/usr/bin/spark-submit --driver-java-options "-Dlog4j.configuration=file:////opt/${environment_namespace}/${component_application}/${component_name}/log4j.properties" --conf 'spark.executor.extraJavaOptions=-Dlog4j.configuration=file:////opt/${environment_namespace}/${component_application}/${component_name}/log4j.properties' --name '${component_job_name}' --master yarn-cluster --py-files application.properties,${component_py_files} ${component_spark_submit_args} ${component_main_py}
11+
ExecStart=${environment_spark_submit} --driver-java-options "-Dlog4j.configuration=file:////opt/${environment_namespace}/${component_application}/${component_name}/log4j.properties" --conf 'spark.executor.extraJavaOptions=-Dlog4j.configuration=file:////opt/${environment_namespace}/${component_application}/${component_name}/log4j.properties' --name '${component_job_name}' --master yarn-cluster --py-files application.properties,${component_py_files} ${component_spark_submit_args} ${component_main_py}
1212
Restart=always
1313
RestartSec=2

api/src/main/resources/plugins/systemd.service.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ WorkingDirectory=/opt/${environment_namespace}/${component_application}/${compon
88
ExecStartPre=/opt/${environment_namespace}/${component_application}/${component_name}/yarn-kill.py
99
ExecStopPost=/opt/${environment_namespace}/${component_application}/${component_name}/yarn-kill.py
1010
Environment=SPARK_MAJOR_VERSION=${component_spark_version}
11-
ExecStart=/usr/bin/spark-submit --driver-java-options "-Dlog4j.configuration=file:////opt/${environment_namespace}/${component_application}/${component_name}/log4j.properties" --class ${component_main_class} --name '${component_job_name}' --master yarn-cluster --files log4j.properties ${component_spark_submit_args} ${component_main_jar}
11+
ExecStart=${environment_spark_submit} --driver-java-options "-Dlog4j.configuration=file:////opt/${environment_namespace}/${component_application}/${component_name}/log4j.properties" --class ${component_main_class} --name '${component_job_name}' --master yarn-cluster --files log4j.properties ${component_spark_submit_args} ${component_main_jar}
1212
Restart=always
1313
RestartSec=2

0 commit comments

Comments
 (0)