<?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 How to change hive session folder from /tmp to other folder in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-hive-session-folder-from-tmp-to-other-folder/m-p/211681#M69504</link>
    <description>&lt;P&gt;I found there are 10,000+ folder owned by hive:hadoop under /tmp locally, folder name is {session_id}_resources(eg. 0003f01d-07e5-4caa-bb4f-61e62d35f426_resources). And the folder is empty, can I delete them? And how can I config to store them in another folder? They have been there 1 month ago. No one use these folder anymore. &lt;/P&gt;&lt;P&gt;I think it is created by hive session. I found JIRA describe similar bug: &lt;A href="https://issues.apache.org/jira/browse/HIVE-4546" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-4546&lt;/A&gt;, but this bug has been fixed from hive version 0.12.0. The hive version here is 1.2.1.2.6. It shouldn't have this issue again. Any idea on how to prevent leaving these hive session folder? Or is there a way to have these in a subfolder, e.g. /tmp/hive_session/0003f01d-07e5-4caa-bb4f-61e62d35f426_resources/&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 18:39:23 GMT</pubDate>
    <dc:creator>YangWang</dc:creator>
    <dc:date>2017-10-12T18:39:23Z</dc:date>
    <item>
      <title>How to change hive session folder from /tmp to other folder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-hive-session-folder-from-tmp-to-other-folder/m-p/211681#M69504</link>
      <description>&lt;P&gt;I found there are 10,000+ folder owned by hive:hadoop under /tmp locally, folder name is {session_id}_resources(eg. 0003f01d-07e5-4caa-bb4f-61e62d35f426_resources). And the folder is empty, can I delete them? And how can I config to store them in another folder? They have been there 1 month ago. No one use these folder anymore. &lt;/P&gt;&lt;P&gt;I think it is created by hive session. I found JIRA describe similar bug: &lt;A href="https://issues.apache.org/jira/browse/HIVE-4546" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-4546&lt;/A&gt;, but this bug has been fixed from hive version 0.12.0. The hive version here is 1.2.1.2.6. It shouldn't have this issue again. Any idea on how to prevent leaving these hive session folder? Or is there a way to have these in a subfolder, e.g. /tmp/hive_session/0003f01d-07e5-4caa-bb4f-61e62d35f426_resources/&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:39:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-hive-session-folder-from-tmp-to-other-folder/m-p/211681#M69504</guid>
      <dc:creator>YangWang</dc:creator>
      <dc:date>2017-10-12T18:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to change hive session folder from /tmp to other folder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-hive-session-folder-from-tmp-to-other-folder/m-p/211682#M69505</link>
      <description>&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;Go to Ambari Hive &lt;STRONG&gt;Configs&lt;/STRONG&gt; page. &lt;/P&gt;&lt;P&gt;Then find &lt;STRONG&gt;Custom hive-site&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Add following arguments:&lt;/P&gt;&lt;PRE&gt;hive.downloaded.resources.dir=/tmp/hive/${hive.session.id}_resources&lt;/PRE&gt;&lt;P&gt;Then save the modification and do a Rolling Restart of related component.&lt;/P&gt;&lt;P&gt;We can delete all ages {session_id}_resources folder under /tmp, and start a hive client, run some SQL, then check the new session folder will be generated in /tmp/hive/ folder. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:45:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-hive-session-folder-from-tmp-to-other-folder/m-p/211682#M69505</guid>
      <dc:creator>YangWang</dc:creator>
      <dc:date>2017-10-12T18:45:16Z</dc:date>
    </item>
  </channel>
</rss>

