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/7b92f44b Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/7b92f44b Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/7b92f44b Branch: refs/heads/beeline-cli Commit: 7b92f44b674c5455eb3629b75037531efca43126 Parents: 461e38e Author: Gunther Hagleitner <[email protected]> Authored: Thu Sep 24 15:20:26 2015 -0700 Committer: Gunther Hagleitner <[email protected]> Committed: Thu Sep 24 15:24:42 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/7b92f44b/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"))
