Package org.apache.hadoop.tools
Interface GetUserMappingsProtocol
- All Known Implementing Classes:
GetUserMappingsProtocolClientSideTranslatorPB
@LimitedPrivate({"HDFS","MapReduce"})
@Evolving
public interface GetUserMappingsProtocol
Protocol implemented by the Name Node and Job Tracker which maps users to
groups.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionString[]getGroupsForUser(String user) Get the groups which are mapped to the given user.
-
Field Details
-
versionID
static final long versionIDVersion 1: Initial version.- See Also:
-
-
Method Details
-
getGroupsForUser
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- raised on errors performing I/O.
-