Index: itests/hive-unit/src/test/java/org/apache/hadoop/hive/thrift/TestHadoop20SAuthBridge.java
===================================================================
--- itests/hive-unit/src/test/java/org/apache/hadoop/hive/thrift/TestHadoop20SAuthBridge.java (revision 1629103)
+++ itests/hive-unit/src/test/java/org/apache/hadoop/hive/thrift/TestHadoop20SAuthBridge.java (working copy)
@@ -47,6 +47,7 @@
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod;
import org.apache.hadoop.security.authorize.AuthorizationException;
+import org.apache.hadoop.security.authorize.DefaultImpersonationProvider;
import org.apache.hadoop.security.authorize.ProxyUsers;
import org.apache.hadoop.security.token.SecretManager.InvalidToken;
import org.apache.hadoop.security.token.Token;
@@ -129,7 +130,7 @@
}
builder.append("127.0.1.1,");
builder.append(InetAddress.getLocalHost().getCanonicalHostName());
- conf.setStrings(ProxyUsers.getProxySuperuserIpConfKey(superUserShortName),
+ conf.setStrings(DefaultImpersonationProvider.getProxySuperuserIpConfKey(superUserShortName),
builder.toString());
}
@@ -292,7 +293,7 @@
private void setGroupsInConf(String[] groupNames, String proxyUserName)
throws IOException {
conf.set(
- ProxyUsers.getProxySuperuserGroupConfKey(proxyUserName),
+ DefaultImpersonationProvider.getProxySuperuserGroupConfKey(proxyUserName),
StringUtils.join(",", Arrays.asList(groupNames)));
configureSuperUserIPAddresses(conf, proxyUserName);
ProxyUsers.refreshSuperUserGroupsConfiguration(conf);
Index: pom.xml
===================================================================
--- pom.xml (revision 1629103)
+++ pom.xml (working copy)
@@ -115,7 +115,7 @@
2.1.6
0.20.2
1.2.1
- 2.4.0
+ 2.5.0
${basedir}/${hive.path.to.root}/testutils/hadoop
0.98.3-hadoop1
0.98.3-hadoop2