<?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: hadoop /tmp files deletion confirmation ,can i delete below hadoop tmp which occupy 8TB? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164973#M127340</link>
    <description>&lt;P&gt;I'm not aware of an existing script already in HDP to do this for you.  However, I did run across this:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/nmilford/clean-hadoop-tmp"&gt;https://github.com/nmilford/clean-hadoop-tmp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note, that script is written in ruby.  You could follow the logic an write it in Python, Perl or Bash.&lt;/P&gt;</description>
    <pubDate>Sat, 06 Aug 2016 02:11:51 GMT</pubDate>
    <dc:creator>myoung</dc:creator>
    <dc:date>2016-08-06T02:11:51Z</dc:date>
    <item>
      <title>hadoop /tmp files deletion confirmation ,can i delete below hadoop tmp which occupy 8TB?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164968#M127335</link>
      <description>&lt;P&gt;hdfs@ABCHADOOP1-15-2:/root&amp;gt; hadoop fs -du -h /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086 &lt;/P&gt;&lt;P&gt;7.9 T  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001&lt;/P&gt;&lt;P&gt;
hdfs@ABCHADOOP1-15-2:/root&amp;gt; hadoop fs -du -h /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001&lt;/P&gt;&lt;P&gt;
687.8 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000000_0
687.4 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000001_0
686.9 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000002_0
653.0 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000003_0
653.0 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000004_0
653.0 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000005_0
653.0 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000006_0
653.0 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000007_0
653.0 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000008_0
653.0 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000009_0
653.0 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000010_0
653.0 G  /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000011_0
73.0 G   /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000012_0
34.2 G   /tmp/hive-beeswax-abic720prod/hive_2016-04-12_10-09-43_383_5647515039912810955-1086/-ext-10001/000013_0&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 20:25:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164968#M127335</guid>
      <dc:creator>g_rao9704</dc:creator>
      <dc:date>2016-08-04T20:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop /tmp files deletion confirmation ,can i delete below hadoop tmp which occupy 8TB?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164969#M127336</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10953/grao9704.html" nodeid="10953"&gt;@sankar rao&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The files in /tmp are used as a temporary staging location while jobs are running.  In my experience, if all of your jobs have completed and the files are dated older than a day or two from "now", then you can delete those files without issue.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 21:02:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164969#M127336</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-08-04T21:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop /tmp files deletion confirmation ,can i delete below hadoop tmp which occupy 8TB?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164970#M127337</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2695/myoung.html"&gt;Michael Young&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks you so much..now only i got exact answer for my question since long i am waiting for this confirmation  .But i have small concern ,according my understanding  when jobs are completed the temp files are automatically deleted ,why this files there in tmp files? can please explain in details.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 21:06:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164970#M127337</guid>
      <dc:creator>g_rao9704</dc:creator>
      <dc:date>2016-08-04T21:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop /tmp files deletion confirmation ,can i delete below hadoop tmp which occupy 8TB?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164971#M127338</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10953/grao9704.html" nodeid="10953"&gt;@sankar rao&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The file stored in /tmp should be automatically removed when the job finishes.  However, if the job does not finish properly (due to an error or some other problem), the files may not always be deleted.&lt;/P&gt;&lt;P&gt;See here: &lt;A target="_blank" href="https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration"&gt;https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hive uses temporary folders both on the machine running the Hive client and the default HDFS instance. These folders are used to store per-query temporary/intermediate data sets and are normally cleaned up by the hive client when the query is finished. However, in cases of abnormal hive client termination, some data may be left behind. The configuration details are as follows:&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;On the HDFS cluster this is set to /tmp/hive-&amp;lt;username&amp;gt; by default and is controlled by the configuration variable hive.exec.scratchdir&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;On the client machine, this is hardcoded to /tmp/&amp;lt;username&amp;gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;Note that when writing data to a table/partition, Hive will first write to a temporary location on the target table's filesystem (using hive.exec.scratchdir as the temporary location) and then move the data to the target table. This applies in all cases - whether tables are stored in HDFS (normal case) or in file systems like S3 or even NFS.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 22:12:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164971#M127338</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-08-04T22:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop /tmp files deletion confirmation ,can i delete below hadoop tmp which occupy 8TB?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164972#M127339</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/2695/myoung.html"&gt;@Michael Young &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks you.i got some sense..i am trying to deleted my old files manually...can you suggest me any script which is automatically deleted old files hadoop /tmp..i know that ,script is there for linux tmp files..is there same like script for hdfs tmp files?&lt;/P&gt;&lt;P&gt;last thing from side is &lt;/P&gt;&lt;P&gt;I could not see below property in hive-site.xml in hdp 2.1.2&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;hive.exec.scratchdir&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;/tmp/mydir&amp;lt;/value&amp;gt;
    &amp;lt;description&amp;gt;Scratch space for Hive jobs&amp;lt;/description&amp;gt;
  &amp;lt;/property&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Aug 2016 16:59:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164972#M127339</guid>
      <dc:creator>g_rao9704</dc:creator>
      <dc:date>2016-08-05T16:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop /tmp files deletion confirmation ,can i delete below hadoop tmp which occupy 8TB?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164973#M127340</link>
      <description>&lt;P&gt;I'm not aware of an existing script already in HDP to do this for you.  However, I did run across this:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/nmilford/clean-hadoop-tmp"&gt;https://github.com/nmilford/clean-hadoop-tmp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note, that script is written in ruby.  You could follow the logic an write it in Python, Perl or Bash.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2016 02:11:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hadoop-tmp-files-deletion-confirmation-can-i-delete-below/m-p/164973#M127340</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-08-06T02:11:51Z</dc:date>
    </item>
  </channel>
</rss>

