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
2828 source " $( dirname " $0 " ) " /find-spark-home
2929fi
3030
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+
3137CLASS=" org.apache.hive.beeline.BeeLine"
3238exec " ${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
6161 unset HADOOP_CONF_DIR
6262fi
6363
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-
6964# The launcher library will print arguments separated by a NULL character, to allow arguments with
7065# characters that would be otherwise interpreted by the shell. Read that in a while loop, populating
7166# an array that will be used to exec the final command.
You can’t perform that action at this time.
0 commit comments