hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r1083122 - /hive/trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java
Date Sat, 19 Mar 2011 01:23:52 GMT
Author: cws
Date: Sat Mar 19 01:23:52 2011
New Revision: 1083122

URL: http://svn.apache.org/viewvc?rev=1083122&view=rev
Log:
HIVE-2064. Make call to SecurityUtil.getServerPrincipal unambiguous (Eli Collins via cws)

Modified:
    hive/trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java

Modified: hive/trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java
URL: http://svn.apache.org/viewvc/hive/trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java?rev=1083122&r1=1083121&r2=1083122&view=diff
==============================================================================
--- hive/trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java
(original)
+++ hive/trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java
Sat Mar 19 01:23:52 2011
@@ -347,8 +347,8 @@ import org.apache.thrift.transport.TTran
        // Login from the keytab
        String kerberosName;
        try {
-         kerberosName = SecurityUtil.getServerPrincipal(
-           principalConf, null);
+         kerberosName =
+           SecurityUtil.getServerPrincipal(principalConf, "0.0.0.0");
          UserGroupInformation.loginUserFromKeytab(
              kerberosName, keytabFile);
          realUgi = UserGroupInformation.getLoginUser();



Mime
View raw message