Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 04-13-2016 12:55 PM - edited 09-16-2022 03:13 AM
Team:
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.
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;
I tried to change hive.metastore.warehouse.dir to some other dir but problem is new database also getting create in that location.
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).
Can someone please help on this issue.
Created 04-13-2016 01:01 PM
Can you try to set below parameter on hive shell and run again?
set hive.exec.stagingdir=/tmp/
Created 04-13-2016 01:01 PM
Can you try to set below parameter on hive shell and run again?
set hive.exec.stagingdir=/tmp/
Created 04-15-2016 11:42 AM
Hi, did that property worked for you?
Created 11-03-2016 04:48 AM