<?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: set fs.trash.interval to zero in order to avoid files to be in trash in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/set-fs-trash-interval-to-zero-in-order-to-avoid-files-to-be/m-p/213740#M72027</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, setting the parameter to 60 minutes will cause the trash to get cleared for the deleted content after 60 minutes.&lt;/P&gt;&lt;P&gt;Example:    if we delete a file with name "/home/admin/test.txt"   at 1:00 PM then with the 60 minutes trash interval that file will get cleared from the .Trash directory at 2:00 PM&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;But if you want immediate deletion then &lt;STRONG&gt;-skipTrash&lt;/STRONG&gt; option will be best as it will bypass trash,&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 18:39:07 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-11-30T18:39:07Z</dc:date>
    <item>
      <title>set fs.trash.interval to zero in order to avoid files to be in trash</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/set-fs-trash-interval-to-zero-in-order-to-avoid-files-to-be/m-p/213737#M72024</link>
      <description>&lt;P&gt;we want to set the parameter fs.trash.interval to zero&lt;/P&gt;&lt;P&gt;as&lt;/P&gt;&lt;PRE&gt;fs.trash.interval=o&lt;/PRE&gt;&lt;P&gt;because when we delete files then files then they go to the
trash&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;PRE&gt;hdfs dfs -rm -R /spark2-history/*&lt;/PRE&gt;&lt;P&gt;and when we disable the fs.trash.interval , then files supposed
to be delete without going to the trash&lt;/P&gt;&lt;P&gt;we want to set the fs.trash.interval to zero because in our
lab , HDFS usage became high on ambari dashboard&lt;/P&gt;&lt;P&gt;and when we delete the files , actually files still stay in
the trash and HDFS usage still high&lt;/P&gt;&lt;P&gt;so i guess if we set the fs.trash.interval to zero then
files will not get to the trash &lt;/P&gt;&lt;P&gt;is it correct ?&lt;/P&gt;&lt;P&gt;second&lt;/P&gt;&lt;P&gt;by default fs.trash.interval=360 min&lt;/P&gt;&lt;P&gt;is it really means that every 360 min ( interval ) , files will be delete from the trash? , or its depend on other scenario?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 18:08:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/set-fs-trash-interval-to-zero-in-order-to-avoid-files-to-be/m-p/213737#M72024</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-11-30T18:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: set fs.trash.interval to zero in order to avoid files to be in trash</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/set-fs-trash-interval-to-zero-in-order-to-avoid-files-to-be/m-p/213738#M72025</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The correct definition of "fs.trash.interval" property is as following:  &lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-common/core-default.xml" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-common/core-default.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fs.trash.interval =&amp;gt; &lt;/STRONG&gt;Number of minutes after which the checkpoint gets deleted. &lt;/P&gt;&lt;P&gt;If zero, the trash feature is disabled. This option may be configured both on the server and the client.&lt;/P&gt;&lt;P&gt; If trash is disabled server side then the client side configuration is checked. &lt;/P&gt;&lt;P&gt;If trash is enabled on the server side then the value configured on the server is used and the client configuration value is ignored.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You can also use the&lt;STRONG&gt; -skipTrash&lt;/STRONG&gt; option will bypass trash, if enabled, and delete the specified file(s) immediately. This can be useful when it is necessary to delete files from an over-quota directory.&lt;/P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;EM&gt;&lt;/EM&gt;&lt;PRE&gt;&lt;EM&gt;hdfs dfs -rm -R -skipTrash /spark2-history/*&lt;/EM&gt;&lt;/PRE&gt;

&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 18:17:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/set-fs-trash-interval-to-zero-in-order-to-avoid-files-to-be/m-p/213738#M72025</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-30T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: set fs.trash.interval to zero in order to avoid files to be in trash</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/set-fs-trash-interval-to-zero-in-order-to-avoid-files-to-be/m-p/213739#M72026</link>
      <description>&lt;P&gt;@Jay so can we summary that - when for example we set &lt;STRONG&gt;fs.trash.interval=60&lt;/STRONG&gt; min , then on the next interval all files in trash will be deleted?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 18:31:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/set-fs-trash-interval-to-zero-in-order-to-avoid-files-to-be/m-p/213739#M72026</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-11-30T18:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: set fs.trash.interval to zero in order to avoid files to be in trash</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/set-fs-trash-interval-to-zero-in-order-to-avoid-files-to-be/m-p/213740#M72027</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, setting the parameter to 60 minutes will cause the trash to get cleared for the deleted content after 60 minutes.&lt;/P&gt;&lt;P&gt;Example:    if we delete a file with name "/home/admin/test.txt"   at 1:00 PM then with the 60 minutes trash interval that file will get cleared from the .Trash directory at 2:00 PM&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;But if you want immediate deletion then &lt;STRONG&gt;-skipTrash&lt;/STRONG&gt; option will be best as it will bypass trash,&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 18:39:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/set-fs-trash-interval-to-zero-in-order-to-avoid-files-to-be/m-p/213740#M72027</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-30T18:39:07Z</dc:date>
    </item>
  </channel>
</rss>

