ITPub博客

首页 > 大数据 > Hadoop > hive表插入数据提示:Ended Job = job_1608515060939_0010 with errors

hive表插入数据提示:Ended Job = job_1608515060939_0010 with errors

原创 Hadoop 作者:joshliu 时间:2020-12-23 16:48:52 2 删除 编辑

【问题描述】

        HIVE插入数据提示:Ended Job = job_1608515060939_0010 with errors

hive> create table test_t1(a int,b varchar(20));
OK
Time taken: 2.107 seconds
hive>
hive> insert into test_t1 values(1,'欢迎光临');
Query ID = trafodion_20201223163333_bd7d16a8-0e7e-4fb5-810f-35368b32fa08
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_1608515060939_0010, Tracking URL = http://test01:8088/proxy/application_1608515060939_0010/
Kill Command = /opt/cloudera/parcels/CDH-5.16.2-1.cdh5.16.2.p0.8/lib/hadoop/bin/hadoop job  -kill job_1608515060939_0010
Hadoop job information for Stage-1: number of mappers: 0; number of reducers: 0
2020-12-23 16:33:39,651 Stage-1 map = 0%,  reduce = 0%
Ended Job = job_1608515060939_0010 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>


【问题解决】

        将hive设置为本地模式来执行即可

hive> 
    > set hive.exec.mode.local.auto=true;
hive> 
    > insert into test_t1 values(1,'欢迎光临');
Automatically selecting local only mode for query
Query ID = trafodion_20201223164242_db1272de-02c7-4e8b-b994-555b18f268ea
Total jobs = 3
Launching Job 1 out of 3
Number of reduce tasks is set to 0 since there's no reduce operator
Job running in-process (local Hadoop)
2020-12-23 16:42:43,741 Stage-1 map = 100%,  reduce = 0%
Ended Job = job_local1386770967_0001
Stage-4 is selected by condition resolver.
Stage-3 is filtered out by condition resolver.
Stage-5 is filtered out by condition resolver.
Moving data to: hdfs://test01:8020/user/hive/warehouse/test_t1/.hive-staging_hive_2020-12-23_16-42-42_150_2769637685602500256-1/-ext-10000
Loading data to table default.test_t1
Table default.test_t1 stats: [numFiles=1, numRows=1, totalSize=15, rawDataSize=14]
MapReduce Jobs Launched: 
Stage-Stage-1:  HDFS Read: 15 HDFS Write: 259570865 SUCCESS
Total MapReduce CPU Time Spent: 0 msec
OK
Time taken: 1.839 seconds


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69985104/viewspace-2744760/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Oracle ODBC配置
请登录后发表评论 登录
全部评论

注册时间:2020-10-09

  • 博文量
    78
  • 访问量
    74243