<?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: HDFS folder permission denied, but the user is in the owner group. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287666#M213173</link>
    <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/45630"&gt;@Seaport&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Please refer to documentation here:&lt;BR /&gt;&lt;A href="https://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-common/FileSystemShell.html#setfacl" target="_blank"&gt;https://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-common/FileSystemShell.html#setfacl&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe try:&lt;BR /&gt;&lt;BR /&gt;sudo -u hdfs hadoop fs -setfacl -m group:hadoop:r-x /warehouse/tablespace/managed/hive/test1&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 15 Jan 2020 03:14:16 GMT</pubDate>
    <dc:creator>EricL</dc:creator>
    <dc:date>2020-01-15T03:14:16Z</dc:date>
    <item>
      <title>HDFS folder permission denied, but the user is in the owner group.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287568#M213112</link>
      <description>&lt;P&gt;I am using HDP. The inode in the following code is a managed hive table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# id zeppelin&lt;BR /&gt;uid=1017(zeppelin) gid=1003(hadoop) groups=1003(hadoop),1005(zeppelin)&lt;BR /&gt;# sudo -u zeppelin hadoop fs -ls /warehouse/tablespace/managed/hive/test1&lt;BR /&gt;ls: Permission denied: user=zeppelin, access=READ_EXECUTE, inode="/warehouse/tablespace/managed/hive/test1":hive:hadoop:drwxrwx---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user zeppelin is in hadoop group, which has full permisison on the hdfs folder. So why do I get the permission error?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 05:05:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287568#M213112</guid>
      <dc:creator>Seaport</dc:creator>
      <dc:date>2020-01-14T05:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS folder permission denied, but the user is in the owner group.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287572#M213116</link>
      <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/45630"&gt;@Seaport&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;Can you try:&lt;BR /&gt;&lt;BR /&gt;hdfs groups zeppelin&lt;BR /&gt;&lt;BR /&gt;Or run "id zeppelin" on the active NN host?</description>
      <pubDate>Tue, 14 Jan 2020 06:17:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287572#M213116</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2020-01-14T06:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS folder permission denied, but the user is in the owner group.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287603#M213144</link>
      <description>&lt;P&gt;# hdfs groups zeppelin&lt;BR /&gt;zeppelin : hadoop zeppelin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the name node,&amp;nbsp;&lt;/P&gt;&lt;P&gt;# id zeppelin&lt;BR /&gt;uid=1018(zeppelin) gid=1003(hadoop) groups=1003(hadoop),1005(zeppelin)&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 16:05:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287603#M213144</guid>
      <dc:creator>Seaport</dc:creator>
      <dc:date>2020-01-14T16:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS folder permission denied, but the user is in the owner group.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287622#M213148</link>
      <description>&lt;P&gt;I might have found the reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the following command as hdfs, which is the superuser of hdfs.&lt;/P&gt;&lt;P&gt;$ hadoop fs -getfacl /warehouse/tablespace/managed/hive/test1&lt;BR /&gt;# file: /warehouse/tablespace/managed/hive/test1&lt;BR /&gt;# owner: hive&lt;BR /&gt;# group: hadoop&lt;BR /&gt;user::rwx&lt;BR /&gt;user:hive:rwx&lt;BR /&gt;group::---&lt;BR /&gt;mask::rwx&lt;BR /&gt;other::---&lt;BR /&gt;default:user::rwx&lt;BR /&gt;default:user:hive:rwx&lt;BR /&gt;default:group::---&lt;BR /&gt;default:mask::rwx&lt;BR /&gt;default:other::---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output, as I understand, shows that the group owner has no permission on the folder. My guess is that, HDP Hive uses ACL to limit direct access to files behind managed tables. HDP Hive tries to force accessing to managed tables only through Hive.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 17:49:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287622#M213148</guid>
      <dc:creator>Seaport</dc:creator>
      <dc:date>2020-01-14T17:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS folder permission denied, but the user is in the owner group.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287653#M213169</link>
      <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/45630"&gt;@Seaport&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Great, thanks for sharing! So try to use "hdfs dfs -setfacl" to update it and see how it goes.</description>
      <pubDate>Tue, 14 Jan 2020 22:06:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287653#M213169</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2020-01-14T22:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS folder permission denied, but the user is in the owner group.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287659#M213171</link>
      <description>&lt;P&gt;I tried the following command&lt;/P&gt;&lt;P&gt;# sudo -u hdfs hadoop fs -setfacl -m g::rx /warehouse/tablespace/managed/hive/test1&lt;/P&gt;&lt;P&gt;But I got the error&lt;/P&gt;&lt;P&gt;-setfacl: Invalid type of acl in &amp;lt;aclSpec&amp;gt; :g::rx&lt;/P&gt;&lt;P&gt;The acl spec is to modify the owning group permission to rx.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 01:09:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287659#M213171</guid>
      <dc:creator>Seaport</dc:creator>
      <dc:date>2020-01-15T01:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS folder permission denied, but the user is in the owner group.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287666#M213173</link>
      <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/45630"&gt;@Seaport&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Please refer to documentation here:&lt;BR /&gt;&lt;A href="https://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-common/FileSystemShell.html#setfacl" target="_blank"&gt;https://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-common/FileSystemShell.html#setfacl&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe try:&lt;BR /&gt;&lt;BR /&gt;sudo -u hdfs hadoop fs -setfacl -m group:hadoop:r-x /warehouse/tablespace/managed/hive/test1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jan 2020 03:14:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287666#M213173</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2020-01-15T03:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS folder permission denied, but the user is in the owner group.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287674#M213177</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/45630"&gt;@Seaport&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the permission is with the zeppelin user&amp;nbsp; [&lt;STRONG&gt;other&lt;/STRONG&gt;] you will need to do that at a user level, remember fine-grained security ONLY give what is necessary !!&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ hdfs dfs -getfacl /warehouse/tablespace/managed/hive
# file: /warehouse/tablespace/managed/hive
# owner: hive
# group: hadoop
user::rwx
group::---
other::---
default:user::rwx
default:user:hive:rwx
default:group::---
default:mask::rwx
default:other::---&lt;/LI-CODE&gt;&lt;P&gt;The command below will set [ &lt;STRONG&gt;r-x&lt;/STRONG&gt; } bits to&amp;nbsp; the correct ACL you can change to &lt;STRONG&gt;rwx&amp;nbsp;&lt;/STRONG&gt;if you wish&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hdfs dfs -setfacl -R -m user:zeppelin:r-x /warehouse/tablespace/managed/hive&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thereafter the zeppelin user can&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[zeppelin~]$ hdfs dfs -ls /warehouse/tablespace/managed/hive
Found 3 items
drwxrwx---+  - hive hadoop          0 2018-12-12 23:42 /warehouse/tablespace/managed/hive/information_schema.db
drwxrwx---+  - hive hadoop          0 2018-12-12 23:41 /warehouse/tablespace/managed/hive/sys.db
drwxrwx---+  - hive hadoop          0 2020-01-15 00:20 /warehouse/tablespace/managed/hive/zepp.db&lt;/LI-CODE&gt;&lt;P&gt;The earlier error is gone&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;ls: &lt;FONT color="#FF0000"&gt;Permission denied&lt;/FONT&gt;: user=zeppelin, access=READ_EXECUTE, inode="/warehouse/tablespace/managed/hive":hive:hadoop:drwx------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy hadooping&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 07:43:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287674#M213177</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2020-01-15T07:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS folder permission denied, but the user is in the owner group.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287716#M213200</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20288"&gt;@Shelton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/10115"&gt;@EricL&lt;/a&gt;&amp;nbsp;Thank you both.&lt;/P&gt;&lt;P&gt;the correct ACL spec is&amp;nbsp;group::r-x&lt;/P&gt;&lt;P&gt;Now the following command works.&lt;/P&gt;&lt;P&gt;sudo -u zeppelin hadoop fs -ls /warehouse/tablespace/managed/hive/test1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I just ran into, I feel that, by design, Hive takes extra effort to prevent users from accessing managed table files directly. I will follow that design and access Hive managed table only through Hive.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 18:02:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-folder-permission-denied-but-the-user-is-in-the-owner/m-p/287716#M213200</guid>
      <dc:creator>Seaport</dc:creator>
      <dc:date>2020-01-15T18:02:34Z</dc:date>
    </item>
  </channel>
</rss>

