diff options
author | Jeff Zhang <zjffdu@apache.org> | 2015-12-08 11:05:06 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2015-12-08 11:05:06 +0000 |
commit | 708129187a460aca30790281e9221c0cd5e271df (patch) | |
tree | c2fecae0d02562f4b26f60f60ec403455f7264ca | |
parent | 48a9804b2ad89b3fb204c79f0dbadbcfea15d8dc (diff) | |
download | spark-708129187a460aca30790281e9221c0cd5e271df.tar.gz spark-708129187a460aca30790281e9221c0cd5e271df.tar.bz2 spark-708129187a460aca30790281e9221c0cd5e271df.zip |
[SPARK-12166][TEST] Unset hadoop related environment in testing
Author: Jeff Zhang <zjffdu@apache.org>
Closes #10172 from zjffdu/SPARK-12166.
-rwxr-xr-x | bin/spark-class | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/spark-class b/bin/spark-class index 87d06693af..5d964ba96a 100755 --- a/bin/spark-class +++ b/bin/spark-class @@ -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. |