HADOOP-10471. Merge r1592915 from trunk.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1592917 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7a0d71916d
commit
caa1107813
|
@ -36,6 +36,9 @@ Release 2.5.0 - UNRELEASED
|
||||||
HADOOP-10549. MAX_SUBST and varPat should be final in Configuration.java.
|
HADOOP-10549. MAX_SUBST and varPat should be final in Configuration.java.
|
||||||
(Gera Shegalov via cnauroth)
|
(Gera Shegalov via cnauroth)
|
||||||
|
|
||||||
|
HADOOP-10471. Reduce the visibility of constants in ProxyUsers.
|
||||||
|
(Benoy Antony via wheat9)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -38,9 +38,9 @@ import com.google.common.annotations.VisibleForTesting;
|
||||||
public class ProxyUsers {
|
public class ProxyUsers {
|
||||||
|
|
||||||
private static final String CONF_HOSTS = ".hosts";
|
private static final String CONF_HOSTS = ".hosts";
|
||||||
public static final String CONF_GROUPS = ".groups";
|
private static final String CONF_GROUPS = ".groups";
|
||||||
public static final String CONF_HADOOP_PROXYUSER = "hadoop.proxyuser.";
|
private static final String CONF_HADOOP_PROXYUSER = "hadoop.proxyuser.";
|
||||||
public static final String CONF_HADOOP_PROXYUSER_RE = "hadoop\\.proxyuser\\.";
|
private static final String CONF_HADOOP_PROXYUSER_RE = "hadoop\\.proxyuser\\.";
|
||||||
public static final String CONF_HADOOP_PROXYSERVERS = "hadoop.proxyservers";
|
public static final String CONF_HADOOP_PROXYSERVERS = "hadoop.proxyservers";
|
||||||
|
|
||||||
private static boolean init = false;
|
private static boolean init = false;
|
||||||
|
|
|
@ -326,8 +326,8 @@ public class TestJspHelper {
|
||||||
String user = "TheNurse";
|
String user = "TheNurse";
|
||||||
conf.set(DFSConfigKeys.HADOOP_SECURITY_AUTHENTICATION, "kerberos");
|
conf.set(DFSConfigKeys.HADOOP_SECURITY_AUTHENTICATION, "kerberos");
|
||||||
|
|
||||||
conf.set(ProxyUsers.CONF_HADOOP_PROXYUSER+realUser+".groups", "*");
|
conf.set(ProxyUsers.getProxySuperuserGroupConfKey(realUser), "*");
|
||||||
conf.set(ProxyUsers.CONF_HADOOP_PROXYUSER+realUser+".hosts", "*");
|
conf.set(ProxyUsers.getProxySuperuserIpConfKey(realUser), "*");
|
||||||
ProxyUsers.refreshSuperUserGroupsConfiguration(conf);
|
ProxyUsers.refreshSuperUserGroupsConfiguration(conf);
|
||||||
UserGroupInformation.setConfiguration(conf);
|
UserGroupInformation.setConfiguration(conf);
|
||||||
UserGroupInformation ugi;
|
UserGroupInformation ugi;
|
||||||
|
|
Loading…
Reference in New Issue