org.apache.hadoop.mr1tools
Interface GetUserMappingsProtocol
- All Superinterfaces:
- org.apache.hadoop.ipc.VersionedProtocol
- All Known Subinterfaces:
- JTProtocols
- All Known Implementing Classes:
- JobTracker
@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"})
@InterfaceStability.Evolving
public interface GetUserMappingsProtocol
- extends org.apache.hadoop.ipc.VersionedProtocol
Protocol implemented by the Name Node and Job Tracker which maps users to
groups.
Field Summary |
static long |
versionID
Version 1: Initial version. |
Method Summary |
java.lang.String[] |
getGroupsForUser(java.lang.String user)
Get the groups which are mapped to the given user. |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
getProtocolSignature, getProtocolVersion |
versionID
static final long versionID
- Version 1: Initial version.
- See Also:
- Constant Field Values
getGroupsForUser
java.lang.String[] getGroupsForUser(java.lang.String user)
throws java.io.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:
java.io.IOException
Copyright © 2009 The Apache Software Foundation