public class Groups extends Object
Groups
allows for server to get the various group memberships
of a given user via the getGroups(String)
call, thus ensuring
a consistent user-to-groups mapping and protects against vagaries of
different mappings on servers and clients in a Hadoop cluster.构造器和说明 |
---|
Groups(Configuration conf) |
限定符和类型 | 方法和说明 |
---|---|
void |
cacheGroupsAdd(List<String> groups) |
List<String> |
getGroups(String user)
Get the group memberships of a given user.
|
static Groups |
getUserToGroupsMappingService()
Get the groups being used to map user-to-groups.
|
static Groups |
getUserToGroupsMappingService(Configuration conf) |
void |
refresh()
Refresh all user-to-groups mappings.
|
public Groups(Configuration conf)
public List<String> getGroups(String user) throws IOException
user
- User's nameIOException
public void refresh()
public static Groups getUserToGroupsMappingService()
public static Groups getUserToGroupsMappingService(Configuration conf)
Copyright © 2009 The Apache Software Foundation