File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -28,5 +28,11 @@ if [ -z "${SPARK_HOME}" ]; then
28
28
source " $( dirname " $0 " ) " /find-spark-home
29
29
fi
30
30
31
+ . " ${SPARK_HOME} " /bin/load-spark-env.sh
32
+ # Bug MAPR-22940
33
+ if [ " $MAPR_SECURITY_STATUS " = " true" ]; then
34
+ export SPARK_JAVA_OPTS=" $SPARK_JAVA_OPTS -Dhadoop.login=hybrid -Dmapr_sec_enabled=true"
35
+ fi
36
+
31
37
CLASS=" org.apache.hive.beeline.BeeLine"
32
38
exec " ${SPARK_HOME} /bin/spark-class" $CLASS " $@ "
Original file line number Diff line number Diff line change @@ -61,11 +61,6 @@ if [[ -n "$SPARK_TESTING" ]]; then
61
61
unset HADOOP_CONF_DIR
62
62
fi
63
63
64
- # Bug MAPR-22940
65
- if [ " $MAPR_SECURITY_STATUS " = " true" ]; then
66
- export SPARK_JAVA_OPTS=" $SPARK_JAVA_OPTS -Dhadoop.login=hybrid -Dmapr_sec_enabled=true"
67
- fi
68
-
69
64
# The launcher library will print arguments separated by a NULL character, to allow arguments with
70
65
# characters that would be otherwise interpreted by the shell. Read that in a while loop, populating
71
66
# an array that will be used to exec the final command.
You can’t perform that action at this time.
0 commit comments