<?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: Hive Scratch Directory in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140815#M103422</link>
    <description>&lt;P&gt;Sorry no other solution from my side since hive doesn't allow few parameters change after initiating session and this is how it works. Or Wait for other experts to answer.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2016 18:18:45 GMT</pubDate>
    <dc:creator>jyadav</dc:creator>
    <dc:date>2016-06-16T18:18:45Z</dc:date>
    <item>
      <title>Hive Scratch Directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140809#M103416</link>
      <description>&lt;P&gt;My cluster is having KMS so when ever I am running the load or manipulate in hive getting error saying that intermediate files can't be moved from non EZ to EZ so I did scratchdir set in the Hive shell still it is taking /tmp/hive/....instead of taking the latest scratch dir... As a work around I did while launching the hive shell if i give hive --hiveconf hive.exec.scratchdir then it is working fine..&lt;/P&gt;&lt;P&gt;Please suggest what was the issue ..I am using hive 0.14.0.2.2.4.10-3&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:23:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140809#M103416</guid>
      <dc:creator>Sreedhar_ch</dc:creator>
      <dc:date>2016-06-16T01:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Scratch Directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140810#M103417</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10635/ammukana1.html" nodeid="10635"&gt;@ammu ch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you share the output of this command?&lt;/P&gt;&lt;P&gt; /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p ******* get &amp;lt;hivehosts&amp;gt; &amp;lt;cluster&amp;gt; hive-site |grep dir&lt;/P&gt;&lt;P&gt;And&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs crypto -listZones|grep &amp;lt;usename&amp;gt; &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 17:15:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140810#M103417</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-16T17:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Scratch Directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140811#M103418</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10635/ammukana1.html" nodeid="10635"&gt;@ammu ch&lt;/A&gt; Ok I got the version, but still as per the fix it should use same EZ directory for scratch where table exist. &lt;A href="https://issues.apache.org/jira/browse/HIVE-8065" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-8065&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 17:20:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140811#M103418</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-16T17:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Scratch Directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140812#M103419</link>
      <description>&lt;P&gt;Hope you got my point this is basicaly i am having multiple EZ so each time based on the table I have to change the scratch directory ..within Hive CLI if I set scratch dir it is not taking that as temp directory ...so every time I have to exit and start hive shell with new scratchdir  as --hiveconf ...&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 17:50:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140812#M103419</guid>
      <dc:creator>Sreedhar_ch</dc:creator>
      <dc:date>2016-06-16T17:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Scratch Directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140813#M103420</link>
      <description>&lt;P&gt;Try creating .hiverc file inside the directory from where you are trying to run hive shell and add below line inside the file and run hive shell. Thats the only way remaining or use latest hive release. Thank You.&lt;/P&gt;&lt;PRE&gt;SET hive.exec.scratchdir=/TMP/dir;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jun 2016 18:02:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140813#M103420</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-16T18:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Scratch Directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140814#M103421</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  not sure what soultion you are suggesting ..instead of exit and restart the hive CLI command ..again everytimteI have to edit this file to get new scratchdir and restart the Hive CLI..&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 18:09:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140814#M103421</guid>
      <dc:creator>Sreedhar_ch</dc:creator>
      <dc:date>2016-06-16T18:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Scratch Directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140815#M103422</link>
      <description>&lt;P&gt;Sorry no other solution from my side since hive doesn't allow few parameters change after initiating session and this is how it works. Or Wait for other experts to answer.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 18:18:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140815#M103422</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-16T18:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Scratch Directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140816#M103423</link>
      <description>&lt;P&gt;we can change the parameter in session level by making the entry in hive-site.xml. &lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;for property hive.exec.scratchdir &lt;/P&gt;&lt;P&gt;hive-site.xml&lt;/P&gt;&lt;P&gt;==ADD&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;   &amp;lt;name&amp;gt;hive.security.authorization.sqlstd.confwhitelist.append&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;   &amp;lt;value&amp;gt;hive\.exec\.scratchdir|&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;   &amp;lt;description&amp;gt;append conf property in white list followed by pipeline&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;==&lt;/P&gt;&lt;P&gt;Restart metastore and hiveserver&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;beeline&amp;gt; set hive.exec.scratchdir=/user/hive/scratch;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;beeline&amp;gt; set hive.exec.scratchdir;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, if someone is looking for the same.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjil&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 15:37:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Scratch-Directory/m-p/140816#M103423</guid>
      <dc:creator>manjilhk</dc:creator>
      <dc:date>2018-08-21T15:37:41Z</dc:date>
    </item>
  </channel>
</rss>

