<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Owner Group Write Permision to an HDFS path in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Owner-Group-Write-Permision-to-an-HDFS-path/m-p/289475#M214281</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29629"&gt;@GangWar&lt;/a&gt;&amp;nbsp; Here it is.&lt;/P&gt;&lt;P&gt;$ id -Gn testuser&lt;BR /&gt;hadoop wheel hdfs&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2020 19:51:45 GMT</pubDate>
    <dc:creator>Seaport</dc:creator>
    <dc:date>2020-02-10T19:51:45Z</dc:date>
    <item>
      <title>Owner Group Write Permision to an HDFS path</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Owner-Group-Write-Permision-to-an-HDFS-path/m-p/289465#M214272</link>
      <description>&lt;P&gt;I have run the following test case several times and got the same result.&lt;BR /&gt;Context:&lt;BR /&gt;1. My HDP cluster uses the simple mode to determine user identity. Kerberos is not enabled.&lt;BR /&gt;2. Below is the permission on hdfs folder /data/test&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE&gt;drwxrwxr-x - hdfs hadoop 0 2020-02-07 13:33 /data/test
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So hdfs (the super user) is the owner and hadoop is the owner group. Both the owner user and owner group has write permission on the /data/test folder.&lt;/P&gt;
&lt;P&gt;Steps:&lt;/P&gt;
&lt;P&gt;On an edge node, I used ID command to confirm that the logged on user "testuser" is in hadoop group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE&gt;$ id
uid=1018(testuser) gid=1003(hadoop) groups=1003(hadoop),10(wheel), 1002(hdfs) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, testuser still ran into "Permission Denied".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE&gt;$ hadoop fs -put ./emptyfile1.txt /data/test
put: Permission denied: user=testuser, access=WRITE, inode="/data/test":hdfs:hadoop:drwxrwxr-x
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I used hdfs account to changed the folder owner to be testuser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE&gt;$ hadoop fs -chown testuser /data/test&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the same edge node, now testuser ran put command successfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my question: why testuser cannot write to the hdfs folder via the owner group permissions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 18:56:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Owner-Group-Write-Permision-to-an-HDFS-path/m-p/289465#M214272</guid>
      <dc:creator>Seaport</dc:creator>
      <dc:date>2020-02-10T18:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Owner Group Write Permision to an HDFS path</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Owner-Group-Write-Permision-to-an-HDFS-path/m-p/289474#M214280</link>
      <description>&lt;P&gt;What's the result of below command with respect to test user?&lt;/P&gt;&lt;PRE&gt;id -Gn testuser&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Feb 2020 19:49:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Owner-Group-Write-Permision-to-an-HDFS-path/m-p/289474#M214280</guid>
      <dc:creator>GangWar</dc:creator>
      <dc:date>2020-02-10T19:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Owner Group Write Permision to an HDFS path</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Owner-Group-Write-Permision-to-an-HDFS-path/m-p/289475#M214281</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29629"&gt;@GangWar&lt;/a&gt;&amp;nbsp; Here it is.&lt;/P&gt;&lt;P&gt;$ id -Gn testuser&lt;BR /&gt;hadoop wheel hdfs&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 19:51:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Owner-Group-Write-Permision-to-an-HDFS-path/m-p/289475#M214281</guid>
      <dc:creator>Seaport</dc:creator>
      <dc:date>2020-02-10T19:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Owner Group Write Permision to an HDFS path</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Owner-Group-Write-Permision-to-an-HDFS-path/m-p/290111#M214680</link>
      <description>&lt;P&gt;Finally, I figured out what is going on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The root cause is that, I only set up testuser on edge nodes, not the name node.&lt;/P&gt;&lt;P&gt;I looked into this page, &lt;A href="https://hadoop.apache.org/docs/r3.1.1/hadoop-project-dist/hadoop-common/GroupsMapping.html" target="_blank"&gt;https://hadoop.apache.org/docs/r3.1.1/hadoop-project-dist/hadoop-common/GroupsMapping.html&lt;/A&gt;, which shows that "For HDFS, the mapping of users to groups is performed on the NameNode. Thus, the host system configuration of the NameNode determines the group mappings for the users."&lt;BR /&gt;&amp;nbsp;After I created the user on the NameNode and ran the command&lt;/P&gt;&lt;PRE&gt;hdfs dfsadmin -refreshUserToGroupsMappings&lt;/PRE&gt;&lt;P&gt;the copy is successful and there is no permission-denied error.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 21:29:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Owner-Group-Write-Permision-to-an-HDFS-path/m-p/290111#M214680</guid>
      <dc:creator>Seaport</dc:creator>
      <dc:date>2020-02-19T21:29:26Z</dc:date>
    </item>
  </channel>
</rss>

