public class ProxyUsers extends Object
限定符和类型 | 字段和说明 |
---|---|
static String |
CONF_GROUPS |
static String |
CONF_HADOOP_PROXYUSER |
static String |
CONF_HADOOP_PROXYUSER_RE |
构造器和说明 |
---|
ProxyUsers() |
限定符和类型 | 方法和说明 |
---|---|
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 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
- configurationAuthorizationException
Copyright © 2009 The Apache Software Foundation