liang yu created HIVE-28473:
-------------------------------

             Summary: INSERT OVERWRITE LOCAL DIRECTORY writes staging files to 
wrong hdfs directory
                 Key: HIVE-28473
                 URL: https://issues.apache.org/jira/browse/HIVE-28473
             Project: Hive
          Issue Type: Bug
    Affects Versions: 3.1.3
         Environment: Hadoop 3.3.4
HIVE 3.1.3

mapreduce engine
            Reporter: liang yu


using HIVE 3.1.3 ; mr engine.

sql context:

insert overwrite local directory "/path/to/local/dir"

select a from table group by a;

 

when I run this sql in hive, it throws exception: 

RuntimeException: cannot create staging directory 
"hdfs://nameservice/path/to/local/dir/.hive-stagingxxxx".

 

the staging file should be written to a temp hdfs directory which is created 
from hiveSessionPath and executionId, but in this scenario, it writes to a hdfs 
directory which is created from the local directory path.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to