Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8062

yarn rmadmin -getGroups returns group from which the user has been removed

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0, 3.0.3
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      adding group hrt_yarn_rmadmin_test
      sudo su - -c "groupadd hrt_yarn_rmadmin_test" root
      
      adding user hrt_yarn_rmadmin_test to group hrt_yarn_rmadmin_test
      sudo su - -c "useradd hrt_yarn_rmadmin_test -g hrt_yarn_rmadmin_test" root
      
      adding group hrt_yarn_rmadmin_test_group2
      sudo su - -c "groupadd hrt_yarn_rmadmin_test_group2" root
      
      adding user hrt_yarn_rmadmin_test to group hrt_yarn_rmadmin_test_group2
      sudo su - -c "usermod -a -G hrt_yarn_rmadmin_test_group2 hrt_yarn_rmadmin_test" root
      

      Refresh and getGroups

      yarn rmadmin -refreshUserToGroupsMappings
      /usr/hdp/current/hadoop-yarn-client/bin/yarn rmadmin -getGroups hrt_yarn_rmadmin_test
      hrt_yarn_rmadmin_test : hrt_yarn_rmadmin_test hrt_yarn_rmadmin_test_group2
      

      Delete group hrt_yarn_rmadmin_test_group2 from user hrt_yarn_rmadmin_test and refresh and do getGroups.
      We can still see group hrt_yarn_rmadmin_test_group2

      sudo su - -c "gpasswd -d hrt_yarn_rmadmin_test hrt_yarn_rmadmin_test_group2" root
      

      Removing user hrt_yarn_rmadmin_test from group hrt_yarn_rmadmin_test_group2

      bash-4.2$  /usr/hdp/current/hadoop-yarn-client/bin/yarn rmadmin -refreshUserToGroupsMappings
      /usr/hdp/current/hadoop-yarn-client/bin/yarn rmadmin -getGroups hrt_yarn_rmadmin_test
      hrt_yarn_rmadmin_test : hrt_yarn_rmadmin_test hrt_yarn_rmadmin_test_group2
      

        Attachments

        1. YARN-8062.001.patch
          3 kB
          Sunil Govindan
        2. YARN-8062.002.patch
          2 kB
          Sunil Govindan
        3. YARN-8062.003.patch
          3 kB
          Sunil Govindan
        4. YARN-8062.004.patch
          2 kB
          Sunil Govindan

          Activity

            People

            • Assignee:
              sunilg Sunil Govindan
              Reporter:
              ssathish@hortonworks.com Sumana Sathish
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: