Carter Shanklin created HIVE-7806:
-------------------------------------

             Summary: insert overwrite local directory doesn't complain if it 
can't actually write the data
                 Key: HIVE-7806
                 URL: https://issues.apache.org/jira/browse/HIVE-7806
             Project: Hive
          Issue Type: Bug
    Affects Versions: 0.13.1
            Reporter: Carter Shanklin
            Priority: Minor


I tried exporting data to a directory that didn't exist and could not be 
created my my user.

Hive reported success. It would be better if it reported failure here.

{code}
Time taken: 0.397 seconds
hive> insert overwrite local directory '/home/hue/staging' row format delimited 
fields terminated by ',' select * from store_sales;
Query ID = hue_20140815141414_e4f0d70e-416e-4268-98ee-e5cc8f16ffaa
Total jobs = 1
Launching Job 1 out of 1
Number of reduce tasks is set to 0 since there's no reduce operator
Starting Job = job_1408132753408_0001, Tracking URL = 
http://sandbox.hortonworks.com:8088/proxy/application_1408132753408_0001/
Kill Command = /usr/lib/hadoop/bin/hadoop job  -kill job_1408132753408_0001
Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 0
2014-08-15 14:14:47,272 Stage-1 map = 0%,  reduce = 0%
2014-08-15 14:14:55,021 Stage-1 map = 100%,  reduce = 0%, Cumulative CPU 0.98 
sec
MapReduce Total cumulative CPU time: 980 msec
Ended Job = job_1408132753408_0001
Copying data to local directory /home/hue/staging
Copying data to local directory /home/hue/staging
MapReduce Jobs Launched:
Job 0: Map: 1   Cumulative CPU: 0.98 sec   HDFS Read: 327 HDFS Write: 0 SUCCESS
Total MapReduce CPU Time Spent: 980 msec
OK
Time taken: 25.903 seconds
{code}

... Meanwhile, in another shell ...

{code}
[hue@sandbox home]$ ls -l /home/hue/staging
ls: cannot access /home/hue/staging: No such file or directory
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to