Skip to content

Commit

Permalink
[MAPR-24415] SPARK_JAVA_OPTS is deprecated (apache#71)
Browse files Browse the repository at this point in the history
Signed-off-by: Rostyslav Sotnychenko <rsotnychenko@maprtech.com>
  • Loading branch information
rsotn-mapr committed Jan 12, 2017
1 parent de237dc commit e338b71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions bin/beeline
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@ if [ -z "${SPARK_HOME}" ]; then
source "$(dirname "$0")"/find-spark-home
fi

. "${SPARK_HOME}"/bin/load-spark-env.sh
#Bug MAPR-22940
if [ "$MAPR_SECURITY_STATUS" = "true" ]; then
export SPARK_JAVA_OPTS="$SPARK_JAVA_OPTS -Dhadoop.login=hybrid -Dmapr_sec_enabled=true"
fi

CLASS="org.apache.hive.beeline.BeeLine"
exec "${SPARK_HOME}/bin/spark-class" $CLASS "$@"
5 changes: 0 additions & 5 deletions bin/spark-class
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ if [[ -n "$SPARK_TESTING" ]]; then
unset HADOOP_CONF_DIR
fi

#Bug MAPR-22940
if [ "$MAPR_SECURITY_STATUS" = "true" ]; then
export SPARK_JAVA_OPTS="$SPARK_JAVA_OPTS -Dhadoop.login=hybrid -Dmapr_sec_enabled=true"
fi

# The launcher library will print arguments separated by a NULL character, to allow arguments with
# characters that would be otherwise interpreted by the shell. Read that in a while loop, populating
# an array that will be used to exec the final command.
Expand Down

0 comments on commit e338b71

Please sign in to comment.