Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 4f10b1827 -> 407c1c180
  refs/heads/4.x-HBase-1.1 6a365b871 -> 8f3f56cd0
  refs/heads/4.x-HBase-1.2 9db22d8b7 -> 99465bc14
  refs/heads/4.x-HBase-1.3 c27c68cf1 -> a91f34dc1
  refs/heads/5.x-HBase-2.0 3b1c0d317 -> 44c1aaaa9
  refs/heads/master a7adbbcca -> d9007714a


PHOENIX-4758 Validate that HADOOP_CONF_DIR is not set for HiveMRIT


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

Branch: refs/heads/master
Commit: d9007714a7e62dec1d8d8af05b98685396ba4a42
Parents: a7adbbc
Author: Josh Elser <els...@apache.org>
Authored: Tue May 29 14:14:04 2018 -0400
Committer: Josh Elser <els...@apache.org>
Committed: Mon Jun 4 12:23:38 2018 -0400

----------------------------------------------------------------------
 .../src/it/java/org/apache/phoenix/hive/HiveMapReduceIT.java | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/d9007714/phoenix-hive/src/it/java/org/apache/phoenix/hive/HiveMapReduceIT.java
----------------------------------------------------------------------
diff --git 
a/phoenix-hive/src/it/java/org/apache/phoenix/hive/HiveMapReduceIT.java 
b/phoenix-hive/src/it/java/org/apache/phoenix/hive/HiveMapReduceIT.java
index 644ff24..4bc5a7d 100644
--- a/phoenix-hive/src/it/java/org/apache/phoenix/hive/HiveMapReduceIT.java
+++ b/phoenix-hive/src/it/java/org/apache/phoenix/hive/HiveMapReduceIT.java
@@ -18,6 +18,10 @@
 
 package org.apache.phoenix.hive;
 
+import static org.junit.Assert.fail;
+
+import java.util.Map;
+
 import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest;
 import org.junit.BeforeClass;
 import org.junit.experimental.categories.Category;
@@ -28,6 +32,10 @@ public class HiveMapReduceIT extends HivePhoenixStoreIT {
 
     @BeforeClass
     public static void setUpBeforeClass() throws Exception {
+        final String hadoopConfDir = System.getenv("HADOOP_CONF_DIR");
+        if (hadoopConfDir != null && hadoopConfDir.length() != 0) {
+            fail("HADOOP_CONF_DIR is non-empty in the current shell 
environment which will very likely cause this test to fail.");
+        }
         setup(HiveTestUtil.MiniClusterType.mr);
     }
 }

Reply via email to