File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,11 @@ if [ -n "$JOBSERVER_KEYTAB" ]; then
59
59
SPARK_SUBMIT_OPTIONS=" $SPARK_SUBMIT_OPTIONS --keytab $JOBSERVER_KEYTAB "
60
60
fi
61
61
62
- cmd=' $SPARK_HOME/bin/spark-submit --class $MAIN --driver-memory $JOBSERVER_MEMORY
62
+ if [ -z " ${SJS_LAUNCHER} " ]; then
63
+ export SJS_LAUNCHER=" $SPARK_HOME /bin/spark-submit"
64
+ fi
65
+
66
+ cmd=' $SJS_LAUNCHER --class $MAIN --driver-memory $JOBSERVER_MEMORY
63
67
--conf "spark.executor.extraJavaOptions=$LOGGING_OPTS"
64
68
$SPARK_SUBMIT_OPTIONS
65
69
--driver-java-options "$GC_OPTS $JAVA_OPTS $LOGGING_OPTS $CONFIG_OVERRIDES $SPARK_SUBMIT_JAVA_OPTIONS"
Original file line number Diff line number Diff line change 35
35
echo " Please specify SCALA_VERSION in ${configFile} "
36
36
exit 1
37
37
fi
38
+
39
+ if [ -z " ${SBT_BIN} " ]; then
40
+ export SBT_BIN=" sbt"
41
+ fi
38
42
set -u
39
43
40
44
echo " Packaging job-server for environment ${ENV} ..."
41
45
42
46
pushd " ${bin} /.." > /dev/null
43
- if ! sbt ++" ${SCALA_VERSION} " job-server-extras/assembly; then
47
+ if ! " $SBT_BIN " ++" ${SCALA_VERSION} " job-server-extras/assembly; then
44
48
echo " Assembly failed"
45
49
exit 1
46
50
fi
Original file line number Diff line number Diff line change @@ -43,7 +43,11 @@ if [ -f "$PIDFILE" ] && kill -0 $(cat "$PIDFILE"); then
43
43
exit 1
44
44
fi
45
45
46
- cmd=' $SPARK_HOME/bin/spark-submit --class $MAIN --driver-memory $JOBSERVER_MEMORY
46
+ if [ -z " ${SJS_LAUNCHER} " ]; then
47
+ export SJS_LAUNCHER=" $SPARK_HOME /bin/spark-submit"
48
+ fi
49
+
50
+ cmd=' $SJS_LAUNCHER --class $MAIN --driver-memory $JOBSERVER_MEMORY
47
51
--conf "spark.executor.extraJavaOptions=$LOGGING_OPTS"
48
52
--driver-java-options "$GC_OPTS $JAVA_OPTS $LOGGING_OPTS $CONFIG_OVERRIDES"
49
53
$@ $appdir/spark-job-server.jar $conffile'
You can’t perform that action at this time.
0 commit comments