<?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: Safe to delete under /tmp in HDFS (how about /tmp/hive/****)? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Safe-to-delete-under-tmp-in-HDFS-how-about-tmp-hive/m-p/142282#M40105</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2593/zackriesland.html" nodeid="2593"&gt;@Zack Riesland&lt;/A&gt;&lt;P&gt;Yes, it is safe to remove these folders and do a clean up. There are already actually cleanup scripts for this. Basically when a client runs a query with HiveServer2, Hive first creates these temporary folders to store intermediate/temporary data. For most queries, this is cleaned up at the end of query but sometimes due to issues with the query, these files are still hanging and you have to do a manual cleanup. Check this link for more details.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration#AdminManualConfiguration-TemporaryFolders" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration#AdminManualConfiguration-TemporaryFolders&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Following link might also give you some ideas on how to cleanup.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/19204/do-we-have-any-script-which-we-can-use-to-clean-tm.html" target="_blank"&gt;https://community.hortonworks.com/questions/19204/do-we-have-any-script-which-we-can-use-to-clean-tm.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2016 23:18:21 GMT</pubDate>
    <dc:creator>mqureshi</dc:creator>
    <dc:date>2016-09-08T23:18:21Z</dc:date>
    <item>
      <title>Safe to delete under /tmp in HDFS (how about /tmp/hive/****)?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Safe-to-delete-under-tmp-in-HDFS-how-about-tmp-hive/m-p/142281#M40104</link>
      <description>&lt;P&gt;I recently realized that more than half of all our HDFS usage is under /tmp&lt;/P&gt;&lt;P&gt;I wrote a script to go find all the data and it looks like the vast majority of it is under /tmp/hive/***, for example:&lt;/P&gt;&lt;P&gt;/tmp/hive/root&lt;/P&gt;&lt;P&gt;/tmp/hive/hdfs&lt;/P&gt;&lt;P&gt;/tmp/hive/my_user&lt;/P&gt;&lt;P&gt;These have tens of TB in each of them and quite a lot of it is very old.&lt;/P&gt;&lt;P&gt;Is it safe to delete this data? Say, anything older than 30 days? Would 14 days be safe?&lt;/P&gt;&lt;P&gt;Any best practices here?&lt;/P&gt;&lt;P&gt;It seems odd that there is nothing built-in to maintain this space...&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 18:51:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Safe-to-delete-under-tmp-in-HDFS-how-about-tmp-hive/m-p/142281#M40104</guid>
      <dc:creator>zack_riesland</dc:creator>
      <dc:date>2016-09-08T18:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Safe to delete under /tmp in HDFS (how about /tmp/hive/****)?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Safe-to-delete-under-tmp-in-HDFS-how-about-tmp-hive/m-p/142282#M40105</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2593/zackriesland.html" nodeid="2593"&gt;@Zack Riesland&lt;/A&gt;&lt;P&gt;Yes, it is safe to remove these folders and do a clean up. There are already actually cleanup scripts for this. Basically when a client runs a query with HiveServer2, Hive first creates these temporary folders to store intermediate/temporary data. For most queries, this is cleaned up at the end of query but sometimes due to issues with the query, these files are still hanging and you have to do a manual cleanup. Check this link for more details.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration#AdminManualConfiguration-TemporaryFolders" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration#AdminManualConfiguration-TemporaryFolders&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Following link might also give you some ideas on how to cleanup.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/19204/do-we-have-any-script-which-we-can-use-to-clean-tm.html" target="_blank"&gt;https://community.hortonworks.com/questions/19204/do-we-have-any-script-which-we-can-use-to-clean-tm.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 23:18:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Safe-to-delete-under-tmp-in-HDFS-how-about-tmp-hive/m-p/142282#M40105</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-09-08T23:18:21Z</dc:date>
    </item>
  </channel>
</rss>

