使用mapreduce错误插入hive表时出错

时间:2018-06-02 21:10:06

标签: hadoop hive

我刚刚在本地设置了hadoop 3.1.0和hive 2.3.1,我试图插入测试表。它一直在失败,我不确定为什么。在互联网上搜索似乎没有帮助,因为我已经尝试了所有的东西。

之前有没有其他人犯过这种错误?

完整错误:

hive> insert into gavtemp.staff values (1, 'bob', 111);
WARNING: Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases.
Query ID = gautamnewalkar_20180602170521_38a2fcf5-4cbd-4d84-aa52-f0385e9d798d
Total jobs = 3
Launching Job 1 out of 3
Number of reduce tasks is set to 0 since there's no reduce operator
Starting Job = job_1527972955789_0008, Tracking URL = http://gautams-air.fios-router.home:8088/proxy/application_1527972955789_0008/
Kill Command = /usr/local/Cellar/hadoop/3.1.0/libexec/bin/hadoop job  -kill job_1527972955789_0008
Hadoop job information for Stage-1: number of mappers: 0; number of reducers: 0
2018-06-02 17:05:43,494 Stage-1 map = 0%,  reduce = 0%
Ended Job = job_1527972955789_0008 with errors
Error during job, obtaining debugging information...
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
MapReduce Jobs Launched:
Stage-Stage-1:  HDFS Read: 0 HDFS Write: 0 FAIL
Total MapReduce CPU Time Spent: 0 msec
hive>

0 个答案:

没有答案