<?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: Undeletable HDFS Files in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51412#M55296</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18441"&gt;@saranvisa&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Superuser(hdfs) can delete any file in hdfs. So all i need is to make an hdfs file that cannot be deleted by anyone even superuser like the way chattr command do in linux. With ACLs i cannot make a file undeletable for all users.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 04:32:41 GMT</pubDate>
    <dc:creator>RakeshE</dc:creator>
    <dc:date>2017-02-24T04:32:41Z</dc:date>
    <item>
      <title>Undeletable HDFS Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51383#M55292</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make a file undeletable in Hdfs. Any suggestions ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 14:00:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51383#M55292</guid>
      <dc:creator>RakeshE</dc:creator>
      <dc:date>2017-02-23T14:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Undeletable HDFS Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51384#M55293</link>
      <description>&lt;P&gt;Just put it under the user directory and set the permission just like you we do Linux fs .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using &amp;nbsp;hadoop fs shell command.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;hadoop fs -chown&lt;/PRE&gt;&lt;PRE&gt;Usage: hadoop fs -chmod &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition for backup We can configure &lt;SPAN&gt;HDFS Snapshots point in time file recovery .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HdfsSnapshots.html" target="_self"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HdfsSnapshots.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 14:11:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51384#M55293</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2017-02-23T14:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Undeletable HDFS Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51385#M55294</link>
      <description>Thanks csguna for you reply. I need put files that are not deletable even with superuser. Like chattr in Linux file system.</description>
      <pubDate>Thu, 23 Feb 2017 14:28:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51385#M55294</guid>
      <dc:creator>RakeshE</dc:creator>
      <dc:date>2017-02-23T14:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Undeletable HDFS Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51395#M55295</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11406"&gt;@RakeshE&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use Access Control List (ACL) to protect your file in HDFS. Pls refer the below links&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Security-Apache-Sentry/Hadoop-Security-for-beginners/m-p/48576#M174" target="_blank"&gt;https://community.cloudera.com/t5/Security-Apache-Sentry/Hadoop-Security-for-beginners/m-p/48576#M174&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.com/blog/hdfs-acls-fine-grained-permissions-hdfs-files-hadoop/" target="_blank"&gt;https://hortonworks.com/blog/hdfs-acls-fine-grained-permissions-hdfs-files-hadoop/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 16:57:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51395#M55295</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-02-23T16:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Undeletable HDFS Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51412#M55296</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18441"&gt;@saranvisa&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Superuser(hdfs) can delete any file in hdfs. So all i need is to make an hdfs file that cannot be deleted by anyone even superuser like the way chattr command do in linux. With ACLs i cannot make a file undeletable for all users.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 04:32:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51412#M55296</guid>
      <dc:creator>RakeshE</dc:creator>
      <dc:date>2017-02-24T04:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Undeletable HDFS Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51414#M55297</link>
      <description>There is no immutability attribute feature in HDFS as there is on certain&lt;BR /&gt;Linux filesystems. Your best bet is proper access and authentication&lt;BR /&gt;control.&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Feb 2017 04:40:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51414#M55297</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2017-02-24T04:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Undeletable HDFS Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51416#M55298</link>
      <description>Thank you &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/213"&gt;@Harsh J&lt;/a&gt;</description>
      <pubDate>Fri, 24 Feb 2017 05:16:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/51416#M55298</guid>
      <dc:creator>RakeshE</dc:creator>
      <dc:date>2017-02-24T05:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Undeletable HDFS Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/281489#M55299</link>
      <description>&lt;P&gt;Since Hadoop 2.8, it is possible to make a directory protected and so all its files cannot be deleted, using : fs.protected.directories property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From documentation:&lt;/P&gt;&lt;P&gt;"A comma-separated list of directories which cannot be deleted even by the superuser unless they are empty. This setting can be used to guard important system directories against accidental deletion due to administrator error."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not exactly answer the question but it is a possibility.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 17:40:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Undeletable-HDFS-Files/m-p/281489#M55299</guid>
      <dc:creator>frisch</dc:creator>
      <dc:date>2019-10-28T17:40:20Z</dc:date>
    </item>
  </channel>
</rss>

