You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Sumana Sathish (JIRA)" <ji...@apache.org> on 2018/02/27 23:19:00 UTC

[jira] [Created] (HADOOP-15270) yarn rmadmin -getGroups returns group from which the user has been removed

Sumana Sathish created HADOOP-15270:
---------------------------------------

             Summary: yarn rmadmin -getGroups returns group from which the user has been removed
                 Key: HADOOP-15270
                 URL: https://issues.apache.org/jira/browse/HADOOP-15270
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Sumana Sathish


{code:title= adding group hrt_yarn_rmadmin_test}
sudo su - -c "groupadd hrt_yarn_rmadmin_test" root
{code}
{Code:title=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
{Code}
{Code:title= adding group hrt_yarn_rmadmin_test_group2 }
sudo su - -c "groupadd hrt_yarn_rmadmin_test_group2" root
{Code}
{Code:title=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
{Code}
Refresh and getGroups
{code}
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
{code}
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
{code}
sudo su - -c "gpasswd -d hrt_yarn_rmadmin_test hrt_yarn_rmadmin_test_group2" root
{code}
Removing user hrt_yarn_rmadmin_test from group hrt_yarn_rmadmin_test_group2
{code}
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
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org