<?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 Can we change location of staging data dir in hive ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-change-location-of-staging-data-dir-in-hive/m-p/167786#M25082</link>
    <description>&lt;P&gt;Team:&lt;/P&gt;&lt;P&gt;Can we change location of temp staging file .hive-staging_hive_2016-04-13_08-1* which is getting create inside /apps/hive/warehouse whenever we are running some create table as select statement.&lt;/P&gt;&lt;P&gt;CREATE TABLE test_survey_answers_2016_01_04_oldrecords_temp AS SELECT AM.question_id AS question_id_old, AM.answer_id AS answer_id_old, AM.value AS value_old, AM.text AS text_old, AM.start_date AS start_date_old, AM.end_date as end_date_old, AM.load_date_time as load_date_time_old, AMD.question_id AS question_id_new, AMD.answer_id AS answer_id_new, AMD.value AS value_new, AMD.text AS text_new FROM test_survey_answers AM LEFT OUTER JOIN test_survey_answers_2016_01_04_daily_temp AMD ON (AM.question_id= AMD.question_id AND AM.answer_id=AMD.answer_id;&lt;/P&gt;&lt;P&gt;I tried to change hive.metastore.warehouse.dir to some other dir but problem is new database also getting create in that location. &lt;/P&gt;&lt;P&gt;So I want to have to diffrent dirs, one is for databases(i.e /apps/hive/warehouse) and another one is for temp staging data(like /tmp/ or something else). &lt;/P&gt;&lt;P&gt;Can someone please help on this issue. &lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:13:46 GMT</pubDate>
    <dc:creator>SK1</dc:creator>
    <dc:date>2022-09-16T10:13:46Z</dc:date>
    <item>
      <title>Can we change location of staging data dir in hive ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-change-location-of-staging-data-dir-in-hive/m-p/167786#M25082</link>
      <description>&lt;P&gt;Team:&lt;/P&gt;&lt;P&gt;Can we change location of temp staging file .hive-staging_hive_2016-04-13_08-1* which is getting create inside /apps/hive/warehouse whenever we are running some create table as select statement.&lt;/P&gt;&lt;P&gt;CREATE TABLE test_survey_answers_2016_01_04_oldrecords_temp AS SELECT AM.question_id AS question_id_old, AM.answer_id AS answer_id_old, AM.value AS value_old, AM.text AS text_old, AM.start_date AS start_date_old, AM.end_date as end_date_old, AM.load_date_time as load_date_time_old, AMD.question_id AS question_id_new, AMD.answer_id AS answer_id_new, AMD.value AS value_new, AMD.text AS text_new FROM test_survey_answers AM LEFT OUTER JOIN test_survey_answers_2016_01_04_daily_temp AMD ON (AM.question_id= AMD.question_id AND AM.answer_id=AMD.answer_id;&lt;/P&gt;&lt;P&gt;I tried to change hive.metastore.warehouse.dir to some other dir but problem is new database also getting create in that location. &lt;/P&gt;&lt;P&gt;So I want to have to diffrent dirs, one is for databases(i.e /apps/hive/warehouse) and another one is for temp staging data(like /tmp/ or something else). &lt;/P&gt;&lt;P&gt;Can someone please help on this issue. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:13:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-change-location-of-staging-data-dir-in-hive/m-p/167786#M25082</guid>
      <dc:creator>SK1</dc:creator>
      <dc:date>2022-09-16T10:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we change location of staging data dir in hive ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-change-location-of-staging-data-dir-in-hive/m-p/167787#M25083</link>
      <description>&lt;P&gt;Can you try to set below parameter on hive shell and run again?&lt;/P&gt;&lt;P&gt;set hive.exec.stagingdir=/tmp/&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 20:01:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-change-location-of-staging-data-dir-in-hive/m-p/167787#M25083</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-04-13T20:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can we change location of staging data dir in hive ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-change-location-of-staging-data-dir-in-hive/m-p/167788#M25084</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2273/saurabhmcakiet.html" nodeid="2273"&gt;@Saurabh Kumar&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Hi, did that property worked for you?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 18:42:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-change-location-of-staging-data-dir-in-hive/m-p/167788#M25084</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-04-15T18:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can we change location of staging data dir in hive ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-change-location-of-staging-data-dir-in-hive/m-p/167789#M25085</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2273/saurabhmcakiet.html" nodeid="2273"&gt;@Saurabh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try doing :&lt;/P&gt;&lt;PRE&gt;set hive.exec.scratchdir=/new_dir&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Nov 2016 11:48:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-change-location-of-staging-data-dir-in-hive/m-p/167789#M25085</guid>
      <dc:creator>PARTOMIA</dc:creator>
      <dc:date>2016-11-03T11:48:51Z</dc:date>
    </item>
  </channel>
</rss>

