You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2015/12/08 12:05:09 UTC

spark git commit: [SPARK-12166][TEST] Unset hadoop related environment in testing

Repository: spark
Updated Branches:
  refs/heads/master 48a9804b2 -> 708129187


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

Author: Jeff Zhang <zj...@apache.org>

Closes #10172 from zjffdu/SPARK-12166.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/70812918
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/70812918
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/70812918

Branch: refs/heads/master
Commit: 708129187a460aca30790281e9221c0cd5e271df
Parents: 48a9804
Author: Jeff Zhang <zj...@apache.org>
Authored: Tue Dec 8 11:05:06 2015 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Tue Dec 8 11:05:06 2015 +0000

----------------------------------------------------------------------
 bin/spark-class | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/70812918/bin/spark-class
----------------------------------------------------------------------
diff --git a/bin/spark-class b/bin/spark-class
index 87d0669..5d964ba 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org