@InterfaceAudience.Private public class ProxyUsers extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONF_GROUPS |
static String |
CONF_HADOOP_PROXYUSER |
static String |
CONF_HADOOP_PROXYUSER_RE |
| Constructor and Description |
|---|
ProxyUsers() |
| Modifier and Type | Method and Description |
|---|---|
static void |
authorize(UserGroupInformation user,
String remoteAddress,
Configuration newConf)
Authorize the superuser which is doing doAs
|
static String |
getProxySuperuserGroupConfKey(String userName)
Returns configuration key for effective user groups allowed for a superuser
|
static String |
getProxySuperuserIpConfKey(String userName)
Return configuration key for superuser ip addresses
|
static void |
refreshSuperUserGroupsConfiguration()
reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"
|
static void |
refreshSuperUserGroupsConfiguration(Configuration conf)
refresh configuration
|
public static final String CONF_GROUPS
public static final String CONF_HADOOP_PROXYUSER
public static final String CONF_HADOOP_PROXYUSER_RE
public static void refreshSuperUserGroupsConfiguration()
public static void refreshSuperUserGroupsConfiguration(Configuration conf)
conf - public static String getProxySuperuserGroupConfKey(String userName)
userName - name of the superuserpublic static String getProxySuperuserIpConfKey(String userName)
userName - name of the superuserpublic static void authorize(UserGroupInformation user, String remoteAddress, Configuration newConf) throws AuthorizationException
user - ugi of the effective or proxy user which contains a real userremoteAddress - the ip address of clientnewConf - configurationAuthorizationExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.