Skip to content

Commit 7081291

Browse files
zjffdusrowen
authored andcommitted
[SPARK-12166][TEST] Unset hadoop related environment in testing
Author: Jeff Zhang <[email protected]> Closes #10172 from zjffdu/SPARK-12166.
1 parent 48a9804 commit 7081291

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/spark-class

+6
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ fi
7171

7272
export _SPARK_ASSEMBLY="$SPARK_ASSEMBLY_JAR"
7373

74+
# For tests
75+
if [[ -n "$SPARK_TESTING" ]]; then
76+
unset YARN_CONF_DIR
77+
unset HADOOP_CONF_DIR
78+
fi
79+
7480
# The launcher library will print arguments separated by a NULL character, to allow arguments with
7581
# characters that would be otherwise interpreted by the shell. Read that in a while loop, populating
7682
# an array that will be used to exec the final command.

0 commit comments

Comments
 (0)