Repository: hive
Updated Branches:
  refs/heads/branch-1 232793bea -> df6f1c15f


HIVE-11932: JDBC Driver appends an extra / when configuring connection by 
reading httpPath from ZooKeeper (Vaibhav Gumashta, 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/df6f1c15
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/df6f1c15
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/df6f1c15

Branch: refs/heads/branch-1
Commit: df6f1c15f5625c7f2d35a4623305ef0b36676522
Parents: 232793b
Author: Gunther Hagleitner <[email protected]>
Authored: Thu Sep 24 15:20:26 2015 -0700
Committer: Gunther Hagleitner <[email protected]>
Committed: Thu Sep 24 15:25:54 2015 -0700

----------------------------------------------------------------------
 jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/df6f1c15/jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java 
b/jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java
index 4712d2e..6c21423 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java
@@ -130,7 +130,7 @@ class ZooKeeperHiveClientHelper {
         // Set http path
         if ((matcher.group(1).equals("hive.server2.thrift.http.path"))
             && 
!(connParams.getSessionVars().containsKey(JdbcConnectionParams.HTTP_PATH))) {
-          connParams.getSessionVars().put(JdbcConnectionParams.HTTP_PATH, "/" 
+ matcher.group(2));
+          connParams.getSessionVars().put(JdbcConnectionParams.HTTP_PATH, 
matcher.group(2));
         }
         // Set SSL
         if ((matcher.group(1) != null) && 
(matcher.group(1).equals("hive.server2.use.SSL"))

Reply via email to