hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject hive git commit: HIVE-11966 JDBC Driver parsing error when reading principal from ZooKeeper (Vaibhav Gumashta via Alan Gates)
Date Tue, 03 Nov 2015 00:01:52 GMT
Repository: hive
Updated Branches:
  refs/heads/master 9ddcf2dbc -> 01d2c624e


HIVE-11966 JDBC Driver parsing error when reading principal from ZooKeeper (Vaibhav Gumashta
via Alan Gates)


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

Branch: refs/heads/master
Commit: 01d2c624ef1749db519ab42d66794678fcfd9054
Parents: 9ddcf2d
Author: Alan Gates <gates@hortonworks.com>
Authored: Mon Nov 2 16:01:03 2015 -0800
Committer: Alan Gates <gates@hortonworks.com>
Committed: Mon Nov 2 16:01:03 2015 -0800

----------------------------------------------------------------------
 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/01d2c624/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 7195515..1ca77a1 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java
@@ -159,7 +159,7 @@ class ZooKeeperHiveClientHelper {
         }
         // KERBEROS
         // If delegation token is passed from the client side, do not set the principal
-        if (matcher.group(2).equalsIgnoreCase("hive.server2.authentication.kerberos.principal")
+        if (matcher.group(1).equalsIgnoreCase("hive.server2.authentication.kerberos.principal")
             && !(connParams.getSessionVars().containsKey(JdbcConnectionParams.AUTH_TYPE)
&& connParams
                 .getSessionVars().get(JdbcConnectionParams.AUTH_TYPE)
                 .equalsIgnoreCase(JdbcConnectionParams.AUTH_TOKEN))


Mime
View raw message