File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 78
78
# This needs to be exported for standalone mode so drivers can connect to the Spark cluster
79
79
export SPARK_HOME
80
80
81
- # DSE_BIN is set in settings.sh
82
- " $DSE_HOME /bin/dse" spark-submit --class " $MAIN " --driver-memory 5G \
81
+ # Identify location of dse command
82
+ DSE=" /usr/bin/dse"
83
+ if [ -z " $DSE_HOME " ]; then
84
+ if [ -e " $DSE " ]; then
85
+ export DSE_HOME=/usr/share/dse
86
+ fi
87
+ fi
88
+ if [ ! -e " $DSE " ]; then
89
+ if [ -e " $DSE_HOME " /bin/dse ]; then
90
+ DSE=" $DSE_HOME " /bin/dse
91
+ else
92
+ echo " Cannot determine DSE_HOME, please set it manually to your DSE install directory"
93
+ exit 1
94
+ fi
95
+ fi
96
+
97
+ # Submit the job server
98
+ " $DSE " spark-submit --class " $MAIN " --driver-memory 5G \
83
99
--conf " spark.executor.extraJavaOptions=$LOGGING_OPTS " \
84
100
--driver-java-options " $GC_OPTS $JAVA_OPTS $LOGGING_OPTS $CONFIG_OVERRIDES " \
85
101
" $@ " " $appdir /spark-job-server.jar" " $conffile " 2>&1 &
You can’t perform that action at this time.
0 commit comments