<?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 Is there a way to prevent a hdfs directory owner to run hadoop rm command? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-prevent-a-hdfs-directory-owner-to-run/m-p/106196#M46433</link>
    <description>&lt;P&gt;Hi All,

Is there a way to prevent a hdfs directory owner to run hadoop rm command?

Like user1 is the owner of the hdfs directory /app/user1/
and got other folders and files under it.

If he runs hadoop fs -rm -R (or just rm) /app/user1 it should fail.

Is there a better way to prevent it?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2016 15:21:46 GMT</pubDate>
    <dc:creator>muthukumar_siva</dc:creator>
    <dc:date>2016-11-16T15:21:46Z</dc:date>
    <item>
      <title>Is there a way to prevent a hdfs directory owner to run hadoop rm command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-prevent-a-hdfs-directory-owner-to-run/m-p/106196#M46433</link>
      <description>&lt;P&gt;Hi All,

Is there a way to prevent a hdfs directory owner to run hadoop rm command?

Like user1 is the owner of the hdfs directory /app/user1/
and got other folders and files under it.

If he runs hadoop fs -rm -R (or just rm) /app/user1 it should fail.

Is there a better way to prevent it?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 15:21:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-prevent-a-hdfs-directory-owner-to-run/m-p/106196#M46433</guid>
      <dc:creator>muthukumar_siva</dc:creator>
      <dc:date>2016-11-16T15:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to prevent a hdfs directory owner to run hadoop rm command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-prevent-a-hdfs-directory-owner-to-run/m-p/106197#M46434</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10949/muthukumarsiva.html" nodeid="10949"&gt;@Muthukumar S&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check - &lt;A href="https://community.hortonworks.com/questions/29862/how-to-protect-hdfs-directories-from-deletion-by-m.html" target="_blank"&gt;https://community.hortonworks.com/questions/29862/how-to-protect-hdfs-directories-from-deletion-by-m.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is new feature of protected directories available from hadoop 2.8.0 onwards.&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/HDFS-8983" target="_blank"&gt;https://issues.apache.org/jira/browse/HDFS-8983&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 03:38:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-prevent-a-hdfs-directory-owner-to-run/m-p/106197#M46434</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-11-17T03:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to prevent a hdfs directory owner to run hadoop rm command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-prevent-a-hdfs-directory-owner-to-run/m-p/106198#M46435</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;Thanks for your comment, we were using hdp 2.4 &amp;amp; hadoop 2.7.2. Not sure this feature is in there with this version.&lt;/P&gt;&lt;P&gt;I enabled read only permission for .Trash folder for the users. Also i was having snapshop enabled for a directory, which is not protective enough as we can able to delete the folders inside a snapshot directory. May be upgrade would be the last option to explore and use it.&lt;/P&gt;&lt;P&gt;Thank you much for the comments.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 11:15:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-prevent-a-hdfs-directory-owner-to-run/m-p/106198#M46435</guid>
      <dc:creator>muthukumar_siva</dc:creator>
      <dc:date>2016-11-21T11:15:19Z</dc:date>
    </item>
  </channel>
</rss>

