hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sp...@apache.org
Subject hive git commit: HIVE-12188: DoAs does not work properly in non-kerberos secured HS2 (Chaoyu Tang, reviewed by Sergio Pena)
Date Sun, 18 Oct 2015 23:46:04 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-1 833deff03 -> ccd0c6d3a


HIVE-12188: DoAs does not work properly in non-kerberos secured HS2 (Chaoyu Tang, reviewed
by Sergio Pena)


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

Branch: refs/heads/branch-1
Commit: ccd0c6d3a999cc70d7a38024a6013a3cea644ba5
Parents: 833deff
Author: Sergio Pena <sergio.pena@cloudera.com>
Authored: Sun Oct 18 18:39:21 2015 -0500
Committer: Sergio Pena <sergio.pena@cloudera.com>
Committed: Sun Oct 18 18:39:53 2015 -0500

----------------------------------------------------------------------
 .../org/apache/hive/service/cli/thrift/ThriftCLIService.java    | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/ccd0c6d3/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java b/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
index 67bc778..926f18f 100644
--- a/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
+++ b/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
@@ -434,14 +434,11 @@ public abstract class ThriftCLIService extends AbstractService implements
TCLISe
 
   private String getDelegationToken(String userName)
       throws HiveSQLException, LoginException, IOException {
-    if (userName == null || !cliService.getHiveConf().getVar(ConfVars.HIVE_SERVER2_AUTHENTICATION)
-        .equalsIgnoreCase(HiveAuthFactory.AuthTypes.KERBEROS.toString())) {
-      return null;
-    }
     try {
       return cliService.getDelegationTokenFromMetaStore(userName);
     } catch (UnsupportedOperationException e) {
       // The delegation token is not applicable in the given deployment mode
+      // such as HMS is not kerberos secured 
     }
     return null;
   }


Mime
View raw message