GetUserMappingsProtocol (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.tools, interface: GetUserMappingsProtocol

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
  Modifier and Type
  Field
  Description
  `static final long`
  `versionID`
  Version 1: Initial version.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String[]`
  `getGroupsForUser(String user)`
  Get the groups which are mapped to the given user.

- ## Field Details

  - ### versionID

    static final long versionID
    Version 1: Initial version.
    See Also:
      - Constant Field Values

- ## Method Details

  - ### 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` - raised on errors performing I/O.