<?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: How i Configure HDFS ACLs on Amazon in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223604#M185469</link>
    <description>&lt;P&gt;Thanks a lot &lt;A rel="user" href="https://community.cloudera.com/users/14200/asirna.html" nodeid="14200"&gt;@Aditya Sirna&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2017 14:00:46 GMT</pubDate>
    <dc:creator>Learner_1122</dc:creator>
    <dc:date>2017-12-13T14:00:46Z</dc:date>
    <item>
      <title>How i Configure HDFS ACLs on Amazon</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223596#M185461</link>
      <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;I have started topic &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;Configure HDFS ACLs". &lt;/STRONG&gt; I am using Amazon Machine.&lt;BR /&gt;How i create a new user ? and other configurations ?&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 19:29:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223596#M185461</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2017-12-12T19:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: How i Configure HDFS ACLs on Amazon</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223597#M185462</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/14200/asirna.html" nodeid="14200"&gt;@Aditya Sirna&lt;/A&gt; Thanks for your prompt reply.&lt;BR /&gt;Also i need to add new users on that Amazon Machine. and then change their right etc. &lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 20:26:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223597#M185462</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2017-12-12T20:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How i Configure HDFS ACLs on Amazon</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223598#M185463</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/14200/asirna.html" nodeid="14200"&gt;@Aditya Sirna&lt;/A&gt; Thanks for your prompt reply.&lt;BR /&gt;Also i need to add new users on that Amazon Machine. and then change their right etc. &lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 20:26:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223598#M185463</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2017-12-12T20:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How i Configure HDFS ACLs on Amazon</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223599#M185464</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44156/mudassarlhr.html" nodeid="44156"&gt;@Mudassar Hussain&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Yes. You can add users on that machine. Make sure to add the user in all the nodes of the cluster.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 20:33:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223599#M185464</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-12-12T20:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How i Configure HDFS ACLs on Amazon</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223600#M185465</link>
      <description>&lt;P&gt;can you please give me some kind of web link which will help me. Thanks &lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 20:40:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223600#M185465</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2017-12-12T20:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How i Configure HDFS ACLs on Amazon</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223601#M185466</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44156/mudassarlhr.html" nodeid="44156"&gt;@Mudassar Hussain&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;This &lt;A href="https://hortonworks.com/blog/hdfs-acls-fine-grained-permissions-hdfs-files-hadoop/"&gt;link&lt;/A&gt; gives usage for ACLs. Configuring ACLs is simple as I mentioned above. Just add that config and restart the services.&lt;/P&gt;&lt;P&gt;To add the user you can run the command&lt;/P&gt;&lt;PRE&gt;useradd {username}&lt;/PRE&gt;&lt;P&gt;Use this &lt;A href="https://www.tecmint.com/add-users-in-linux/"&gt;link&lt;/A&gt; for more info&lt;/P&gt;&lt;P&gt;Can you please Accept the original answer if this helps you. This will be really helpful for other community users.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 20:49:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223601#M185466</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-12-12T20:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How i Configure HDFS ACLs on Amazon</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223602#M185467</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/44156/mudassarlhr.html"&gt;Mudassar Hussain&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Assuming no Kerberos but you want your user to access the HDP cluster ,usually, the local users are on the edgenode. To apply HDFS ACL the local user should have a home in hdfs&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Create a local user on edge node here my user&lt;STRONG&gt; toto&lt;/STRONG&gt; doesn't belong to any group for demo purposes.&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# useradd toto&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Before you can implement HDFS acl's you MUST add the below property in hdfs-site.xml or custom-hdfs-site in the namenode the default value is false, then restart the all the stale configs&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;dfs.namenode.acls.enabled=true&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;As the HDFS user create a directory &lt;STRONG&gt;acldemo&lt;/STRONG&gt; in toto user home in HDFS&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs dfs -mkdir /user/toto/acldemo&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;As HDFS user change the ownership &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$hdfs dfs -chown toto:hdfs  /user/toto/acldemo&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;created 3 dummy files and copied then to hdfs&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs dfs -put test2.txt test3.json test.txt /user/toto/acldemo &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Validate the copy process&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs dfs -ls /user/toto/acldemo 
-rw-r--r-- 3 hdfs hdfs 0 2017-12-12 13:38 /user/toto/acldemo/test.txt 
-rw-r--r-- 3 hdfs hdfs 0 2017-12-12 13:38 /user/toto/acldemo/test2.txt 
-rw-r--r-- 3 hdfs hdfs 0 2017-12-12 13:38 /user/toto/acldemo/test3.json&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Set ACL on the directory &lt;STRONG&gt;acldemo &lt;/STRONG&gt;for different users &lt;STRONG&gt; namely toto,hive,kafka &lt;/STRONG&gt;to see all the subcommands type &lt;STRONG&gt;hdfs dfs&lt;/STRONG&gt; and hit ENTER&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;user toto has RWX&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs dfs -setfacl -m user:toto:--- /user/toto/acldemo &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;User hive has Read Write&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs dfs  -setfacl -m user:hive:rwx  /user/toto/acldemo &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;User Kafka has only READ&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs dfs  -setfacl -m user:kafka:r-x  /user/toto/acldemo &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;To check the current ACL's&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs dfs  -getfacl /user/toto/acldemo
# file: /user/toto/acldemo
# owner: toto
# group: hdfs
user::rwx
user:hive:rwx
user:kafka:r-x
user:toto:---
group::r-x
mask::rwx
other::r-x

&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Now to check whether the permissions work&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For user Kafka he can read but NOT copy any files to &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[kafka@host]$ hdfs dfs -put kafak.txt  /user/toto/acldemo
put: Permission denied: user=kafka, access=WRITE, inode="/user/toto/acldemo/kafak.txt._COPYING_":toto:hdfs:drwxrwxr-x
[kafka@host ~]$ hdfs dfs -cat  /user/toto/acldemo/test.txt
If you can read me then you have the correct permisions
&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;User toto has no permissions !!&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[toto@host]$ hdfs dfs -cat /user/toto/acldemo/test.txt cat: Permission denied: user=toto, access=EXECUTE, inode="/user/toto/acldemo/test.txt":toto:hdfs:drwxrwxr-x&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;For user hive exit code 0 "success" because it can read the contents of the text.txt file in hdfs&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[hive@host]$ hdfs dfs -cat /user/toto/acldemo/test.txt
If you can read me then you have the correct permisions
&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;To know whether a directory has ACL's  notice the + sign on the last bit&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs dfs -ls /user/toto/ 
Found 1 items 
drwxrwxr-x+ - hdfs hdfs 0 2017-12-12 14:15 /user/toto/acldemo&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Hope that helps&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 21:31:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223602#M185467</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-12-12T21:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: How i Configure HDFS ACLs on Amazon</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223603#M185468</link>
      <description>&lt;P&gt;Thanks a lot @&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt; for brief answer.&lt;BR /&gt;I am sorry i am totally new to this so even i did not know where to write these command.  i am using Amazon machine.&lt;BR /&gt;I create a new user &lt;STRONG&gt;"toto"&lt;/STRONG&gt; at&lt;STRONG&gt; "Node2"&lt;/STRONG&gt;. but not know how i view the all user at &lt;STRONG&gt;"Node2"&lt;/STRONG&gt; including &lt;STRONG&gt;"toto".&lt;/STRONG&gt; &lt;BR /&gt;and then i go to "NameNode" and  view the file "hdfs-site.xml" . but did not found property &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;dfs.namenode.acls.enabled".&lt;/STRONG&gt; &lt;BR /&gt;actually i need to know which command write on which "node" in Amazon machine environment.&lt;BR /&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 13:58:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223603#M185468</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2017-12-13T13:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How i Configure HDFS ACLs on Amazon</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223604#M185469</link>
      <description>&lt;P&gt;Thanks a lot &lt;A rel="user" href="https://community.cloudera.com/users/14200/asirna.html" nodeid="14200"&gt;@Aditya Sirna&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 14:00:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-i-Configure-HDFS-ACLs-on-Amazon/m-p/223604#M185469</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2017-12-13T14:00:46Z</dc:date>
    </item>
  </channel>
</rss>

