[ https://issues.apache.org/jira/browse/HDDS-11074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867969#comment-17867969 ]
Soumitra Sulav commented on HDDS-11074: --------------------------------------- The group details are persisted in hdfs filesystem : {code:java} [r...@ccycloud-1.quasar-xdfzsz.root.comops.site ~]# usermod -g hdfs hbase [r...@ccycloud-1.quasar-xdfzsz.root.comops.site ~]# id hbase uid=39993(hbase) gid=39998(hdfs) groups=39998(hdfs) [r...@ccycloud-1.quasar-xdfzsz.root.comops.site ~]# hdfs dfs -ls / Found 7 items drwxr-xr-x - hbase hbase 0 2024-07-22 18:21 /hbase drwxr-xr-x - hdfs supergroup 0 2024-07-11 15:59 /ranger drwxrwxr-x - solr solr 0 2024-07-11 16:00 /solr-infra drwxrwxrwt - hdfs supergroup 0 2024-07-11 16:49 /tmp drwxr-xr-x - hdfs supergroup 0 2024-07-17 10:38 /user drwxr-xr-x - hdfs supergroup 0 2024-07-11 16:00 /warehouse drwxr-xr-x - hdfs supergroup 0 2024-07-11 16:00 /yarn {code} > Ozone group changes on kinit user > --------------------------------- > > Key: HDDS-11074 > URL: https://issues.apache.org/jira/browse/HDDS-11074 > Project: Apache Ozone > Issue Type: Bug > Components: Ozone CLI > Reporter: Soumitra Sulav > Assignee: Tanvi Penumudy > Priority: Major > > After a recent change via HDDS-7577, the owner field persisted on kinit with > different users. > But the same doesn't apply to groups. The group changes with Kerberos > authenticated user or the user the command is running with. > The behavior is still not correct and as aligned as HDFS. > HDFS behavior: > {code:java} > [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# kinit -kt > /home/hrt_qa/hadoopqa/keytabs/hrt_qa.keytab hrt_qa > [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# hdfs dfs -mkdir /tmp/test > [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# hdfs dfs -put > anaconda-ks.cfg /tmp/test > [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# hdfs dfs -ls /tmp/test > Found 1 items > -rw-r--r-- 3 hrt_qa supergroup 8884 2024-06-26 16:07 > /tmp/test/anaconda-ks.cfg > [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# kinit -kt > /home/hrt_qa/hadoopqa/keytabs/hdfs.keytab hdfs > [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# hdfs dfs -ls /tmp/test > Found 1 items > -rw-r--r-- 3 hrt_qa supergroup 8884 2024-06-26 16:07 > /tmp/test/anaconda-ks.cfg{code} > Ozone behavior: > {code:java} > [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# kinit -kt > /home/hrt_qa/hadoopqa/keytabs/hrt_qa.keytab hrt_qa > [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# ozone fs -mkdir -p > ofs://ozone1719380598/test/test > .. > [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# ozone fs -put > anaconda-ks.cfg ofs://ozone1719380598/test/test > .. > [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# ozone fs -ls > ofs://ozone1719380598/test/test > Found 1 items > -rw-rw-rw- 3 hrt_qa hrt_qa 8884 2024-06-26 16:22 > ofs://ozone1719380598/test/test/anaconda-ks.cfg > [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# kinit -kt > /home/hrt_qa/hadoopqa/keytabs/hdfs.keytab hdfs > [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# ozone fs -ls > ofs://ozone1719380598/test/test > Found 1 items > -rw-rw-rw- 3 hrt_qa hdfs 8884 2024-06-26 16:22 > ofs://ozone1719380598/test/test/anaconda-ks.cfg > [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# kinit -kt > /home/hrt_qa/hadoopqa/keytabs/om.keytab om > [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# ozone fs -ls > ofs://ozone1719380598/test/test > Found 1 items > -rw-rw-rw- 3 hrt_qa om 8884 2024-06-26 16:22 > ofs://ozone1719380598/test/test/anaconda-ks.cfg{code} > Group should not have changed on changing the kinit user. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org