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..b2c7e6c 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 @@ -449,7 +449,7 @@ private String getPrincipalWithoutRealmAndHost(String fullPrincipal) } catch (IOException e) { throw new HttpAuthenticationException(e); } - return fullKerberosName.getServiceName(); + return fullKerberosName.getShortName(); } }