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
    Version 1: Initial version.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the groups which are mapped to the given user.
  • Field Details

  • 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.