[SPARK-12166][TEST] Unset hadoop related environment in testing

Author: Jeff Zhang <zjffdu@apache.org>

Closes #10172 from zjffdu/SPARK-12166.
This commit is contained in:
Jeff Zhang 2015-12-08 11:05:06 +00:00 committed by Sean Owen
parent 48a9804b2a
commit 708129187a

View file

@ -71,6 +71,12 @@ fi
export _SPARK_ASSEMBLY="$SPARK_ASSEMBLY_JAR"
# For tests
if [[ -n "$SPARK_TESTING" ]]; then
unset YARN_CONF_DIR
unset HADOOP_CONF_DIR
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.