hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgumas...@apache.org
Subject hive git commit: HIVE-10528: Hiveserver2 in HTTP mode is not applying auth_to_local rules (Abdelrahman Shettia reviewed by Vaibhav Gumashta)
Date Sat, 30 May 2015 20:32:05 GMT
Repository: hive
Updated Branches:
  refs/heads/master ae4790eaa -> 4bffffb3e


HIVE-10528: Hiveserver2 in HTTP mode is not applying auth_to_local rules (Abdelrahman Shettia
reviewed by Vaibhav Gumashta)


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

Branch: refs/heads/master
Commit: 4bffffb3e44f5e03909babef1d26fd611b7edd61
Parents: ae4790e
Author: Vaibhav Gumashta <vgumashta@apache.org>
Authored: Sat May 30 13:31:35 2015 -0700
Committer: Vaibhav Gumashta <vgumashta@apache.org>
Committed: Sat May 30 13:31:35 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/4bffffb3/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java b/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
index eed9a56..e1166d3 100644
--- a/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
+++ b/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
@@ -446,10 +446,10 @@ public class ThriftHttpServlet extends TServlet {
       KerberosNameShim fullKerberosName;
       try {
         fullKerberosName = ShimLoader.getHadoopShims().getKerberosNameShim(fullPrincipal);
+        return fullKerberosName.getShortName();
       } catch (IOException e) {
         throw new HttpAuthenticationException(e);
       }
-      return fullKerberosName.getServiceName();
     }
   }
 


Mime
View raw message