Skip to content

Commit a62a161

Browse files
rsotn-maprekrivokonmapr
authored andcommitted
[MAPR-24415] SPARK_JAVA_OPTS is deprecated (apache#71)
1 parent f4d6113 commit a62a161

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bin/beeline

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,11 @@ if [ -z "${SPARK_HOME}" ]; then
2828
source "$(dirname "$0")"/find-spark-home
2929
fi
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+
3137
CLASS="org.apache.hive.beeline.BeeLine"
3238
exec "${SPARK_HOME}/bin/spark-class" $CLASS "$@"

bin/spark-class

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ if [[ -n "$SPARK_TESTING" ]]; then
6161
unset HADOOP_CONF_DIR
6262
fi
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.

0 commit comments

Comments
 (0)