org.apache.hadoop.tools
Interface GetUserMappingsProtocol
- All Superinterfaces:
- VersionedProtocol
- All Known Implementing Classes:
- JobTracker
public interface GetUserMappingsProtocol
- extends VersionedProtocol
Protocol implemented by the Name Node and Job Tracker which maps users to
groups.
Field Summary |
static long |
versionID
Version 1: Initial version. |
versionID
static final long versionID
- Version 1: Initial version.
- See Also:
- Constant Field Values
getGroupsForUser
String[] getGroupsForUser(String user)
throws IOException
- Get the groups which are mapped to the given user.
- Parameters:
user
- The user to get the groups for.
- Returns:
- The set of groups the user belongs to.
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation