|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.security.Groups
public class Groups
A user-to-groups mapping service.
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.
| Constructor Summary | |
|---|---|
Groups(Configuration conf)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Groups(Configuration conf)
| Method Detail |
|---|
public List<String> getGroups(String user)
throws IOException
user - User's name
IOExceptionpublic void refresh()
public void cacheGroupsAdd(List<String> groups)
public static Groups getUserToGroupsMappingService()
public static Groups getUserToGroupsMappingService(Configuration conf)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||