hive数据导出到本地目录 抛异常

Posted wooluwalker

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hive数据导出到本地目录 抛异常相关的知识,希望对你有一定的参考价值。

经过反复试验,最终重启hdfs和hive解决问题 

 1 hive> insert overwrite local directory ‘/Users/wooluwalker/Desktop/‘ select * from tb_test;
 2 Total jobs = 1
 3 Launching Job 1 out of 1
 4 Number of reduce tasks is set to 0 since there‘s no reduce operator
 5 Starting Job = job_1529105640036_0105, Tracking URL = http://wooluwalkerdeMacBook-Air.local:8088/proxy/application_1529105640036_0105/
 6 Kill Command = /Users/wooluwalker/software/hadoop-2.8.3/bin/hadoop job  -kill job_1529105640036_0105
 7 Hadoop job information for Stage-1: number of mappers: 0; number of reducers: 0
 8 2018-06-17 08:11:46,038 Stage-1 map = 0%,  reduce = 0%
 9 Ended Job = job_1529105640036_0105 with errors
10 Error during job, obtaining debugging information...
11 FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
12 MapReduce Jobs Launched:
13 Stage-Stage-1:  HDFS Read: 0 HDFS Write: 0 FAIL
14 Total MapReduce CPU Time Spent: 0 msec

 

以上是关于hive数据导出到本地目录 抛异常的主要内容,如果未能解决你的问题,请参考以下文章

HIVE数据导出CSV

Sqoop导出Hive数据到Mysql时异常问题解决

Sqoop导出Hive数据到Mysql时异常问题解决

Sqoop导出Hive数据到Mysql时异常问题解决

hive导出数据到本地文件报错解决方法

hive使用教程(2)--数据导入导出、查询与排序