<?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: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99508#M12704</link>
    <description>&lt;P&gt;Based on all the discussion, this is expected behavior. Even after giving full permissions via ranger, only superuser can modify ownership.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 10:04:25 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2016-02-03T10:04:25Z</dc:date>
    <item>
      <title>Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99494#M12690</link>
      <description>&lt;P&gt;I have configured once policy for hdfs via ranger. below are the details:&lt;/P&gt;&lt;P&gt;1. Policy configured for user admin&lt;/P&gt;&lt;P&gt;2. User admin can rwx into /user/oozie&lt;/P&gt;&lt;P&gt;3. Point number 2 tested successfully&lt;/P&gt;&lt;P&gt;4. When I went to change ownership of /user/oozie to admin by user admin then it fails with below error&lt;/P&gt;&lt;PRE&gt;[admin@hdpambari ~]$ hdfs dfs -chown root /user/oozie/test1
chown: changing ownership of '/user/oozie/test1': Non-super user cannot change owner&lt;/PRE&gt;&lt;P&gt;I know that logically this is correct as user "admin" has rwx access to /user/oozie so no need to change the ownership. &lt;/P&gt;&lt;P&gt;Is my understanding correct ? is there any documentation that points to this ? &lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 12:57:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99494#M12690</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-16T12:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99495#M12691</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/503/awadhwani.html" nodeid="503"&gt;@Arti Wadhwani&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 12:59:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99495#M12691</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-16T12:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99496#M12692</link>
      <description>&lt;P&gt;Just a question for clarification: Can you do a hdfs dfs -ls /user/oozie? If the test1 folder is not owned by user admin ( he only has rwx but is not the owner ), then he cannot change the ownership either. That is the same in Linux. I suppose this is not the case here but I just wanted to clarify&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 17:38:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99496#M12692</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2015-12-16T17:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99497#M12693</link>
      <description>&lt;P&gt;Agree, you have to be a superuser or the owner to change the owner of a folder. Also see this &lt;A target="_blank" href="https://github.com/apache/hadoop/blob/3dadf369d550c2ae393b751cb5a184dbfe2814df/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java#L73"&gt;FSDirAttrOp.java#L73&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 17:43:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99497#M12693</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-12-16T17:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99498#M12694</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/168/bleonhardi.html" nodeid="168"&gt;@Benjamin Leonhardi&lt;/A&gt; - Yes I can do dfs -ls /user/oozie, I can read each and every file, I can write into it. You are correct! its same as Unix. &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/113/jstraub.html" nodeid="113"&gt;@Jonas Straub&lt;/A&gt; - Thank you for the link. I think only superuser can change the ownership ( current owner also cannot change it)&lt;/P&gt;&lt;P&gt;Unix:&lt;/P&gt;&lt;PRE&gt;-rwxrwxrwx    1 kkulkarni  staff    39441 Dec 17 08:17 test 
KKs-Mac:~ kkulkarni$
KKs-Mac:~ kkulkarni$ chown root test 
chown: test: Operation not permitted&lt;/PRE&gt;&lt;PRE&gt;KKs-Mac:~ kkulkarni$ sudo chown root test 
KKs-Mac:~ kkulkarni$ ls -lrt test
-rwxrwxrwx  1 root  staff  39441 Dec 17 08:17 test 
KKs-Mac:~ kkulkarni$&lt;/PRE&gt;&lt;P&gt;Same is the case for hdfs.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 10:59:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99498#M12694</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-17T10:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99499#M12695</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/334/mkhandekar.html" nodeid="334"&gt;@mkhandekar&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 11:08:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99499#M12695</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-17T11:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99500#M12696</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;&lt;P&gt;Based on the output in the question , you are logged in as admin user&lt;/P&gt;&lt;P&gt;[&lt;STRONG&gt;&lt;EM&gt;admin&lt;/EM&gt;&lt;/STRONG&gt;@hdpambari ~]$ hdfs dfs -chown root /user/oozie/test1&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;chown: changing ownership of '/user/oozie/test1':Non-super user cannot change owner&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;test1 is owned by some other user?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 11:10:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99500#M12696</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-17T11:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99501#M12697</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;, how are you setting user admin as administrator? Is the user admin in dfs.cluster.administrators?&lt;/P&gt;&lt;P&gt;Do you have access to user "hdfs"?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 11:29:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99501#M12697</guid>
      <dc:creator>bdurai</dc:creator>
      <dc:date>2015-12-17T11:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99502#M12698</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; - its owned by admin only&lt;/P&gt;&lt;PRE&gt;[root@hdpambari yarn]# hadoop fs -ls /user/oozie/test1
-rw-r--r--   3 admin hadoop          0 2015-12-09 21:47 /user/oozie/test1
[root@hdpambari yarn]#&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2015 12:39:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99502#M12698</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-17T12:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99503#M12699</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/229/bdurai.html" nodeid="229"&gt;@bdurai&lt;/A&gt; - nopes I have just configured ranger policy and given rwx access to admin user for /user/oozie (recursively) &lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 12:40:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99503#M12699</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-17T12:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99504#M12700</link>
      <description>&lt;P&gt;I do have access to hdfs user and yes we can change the ownership using &lt;/P&gt;&lt;P&gt;sudo -u hdfs hadoop fs -chown &amp;lt;some-user&amp;gt; /user/oozie/test1&lt;/P&gt;&lt;P&gt;I just wanted to ensure that if this is expected behavior that even after granting rwx via Ranger authorization we cannot change the ownership. &lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 12:42:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99504#M12700</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-17T12:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99505#M12701</link>
      <description>&lt;P&gt;Yes, this is the expected behavior. Ranger Policies are just for the ACL and not for ownership. The right way to do out here is to use Ranger for all the ACLs. You should you want root to access /user/oozie/test1, then from Ranger Admin, you should give "root" the required access to the folder. Ideally, you shouldn't play with owner and group.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 13:02:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99505#M12701</guid>
      <dc:creator>bdurai</dc:creator>
      <dc:date>2015-12-17T13:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99506#M12702</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/229/bdurai.html" nodeid="229"&gt;@bdurai&lt;/A&gt; - Thats correct! Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 19:49:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99506#M12702</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-17T19:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99507#M12703</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; has this been resolved? Please accept best answer or provide your own solution.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 01:52:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99507#M12703</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T01:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger authorization for HDFS - Unable to change ownership of a directory in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99508#M12704</link>
      <description>&lt;P&gt;Based on all the discussion, this is expected behavior. Even after giving full permissions via ranger, only superuser can modify ownership.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 10:04:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-authorization-for-HDFS-Unable-to-change-ownership-of/m-p/99508#M12704</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-02-03T10:04:25Z</dc:date>
    </item>
  </channel>
</rss>

