HIVE-10892 : TestHCatClient should not accept external metastore param from 
-Dhive.metastore.uris (Sushanth Sowmyan, reviewed by Thejas Nair)


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

Branch: refs/heads/spark
Commit: 4140da59658d0a7d3b59d827fe0ba582b1e2816e
Parents: b4f57d8
Author: Sushanth Sowmyan <khorg...@gmail.com>
Authored: Wed Jun 3 14:58:22 2015 -0700
Committer: Sushanth Sowmyan <khorg...@gmail.com>
Committed: Wed Jun 3 14:59:05 2015 -0700

----------------------------------------------------------------------
 .../src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/4140da59/hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java
----------------------------------------------------------------------
diff --git 
a/hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java
 
b/hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java
index 5f94b13..8992d552c 100644
--- 
a/hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java
+++ 
b/hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java
@@ -131,7 +131,7 @@ public class TestHCatClient {
   public static void startMetaStoreServer() throws Exception {
 
     hcatConf = new HiveConf(TestHCatClient.class);
-    String metastoreUri = 
System.getProperty(HiveConf.ConfVars.METASTOREURIS.varname);
+    String metastoreUri = 
System.getProperty("test."+HiveConf.ConfVars.METASTOREURIS.varname);
     if (metastoreUri != null) {
       hcatConf.setVar(HiveConf.ConfVars.METASTOREURIS, metastoreUri);
       useExternalMS = true;

Reply via email to