您的位置:首页 > 大数据 > 人工智能

hive使用count()函数卡在kill command报错:Error during job, obtaining debugging information...

2020-04-04 07:09 1456 查看

本文借鉴:https://blog.csdn.net/qq_41428711/article/details/86169029

Attention:

卡在kill command 百度上有很多 解决的帖子,但是他们的方法解决不了我的问题,所以我仔细观察了一下他们大部分kill command 后面的路径最后都是/bin/hadoop,但我的是/bin/mapred。所以有同样问题的朋友要确认一下自己的hive属于哪个类型的问题哈!

和我一样kill command在/bin/mapred的盆友可以等一等它会自己报错的,下面是具体错误。

Ended Job = job_1545829388777_0070 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设置成本地模式:

set hive.exec.mode.local.auto=true;

再试试count()函数 就可以运行啦!

但是只在本次hive的任务有效,如果想长期有效 的话要修改hive的配置文件:hive-site.xml 位置在hive/conf下

在configuration里面添加一个property:

<property>

    <name>hive.exec.mode.local.auto</name>

    <value>true</value>

</property>

注意 配置文件的格式和内容千万别写错,不然运行也不成功哦(血的教训.......)

  • 点赞
  • 收藏
  • 分享
  • 文章举报
lkx99661014 发布了7 篇原创文章 · 获赞 0 · 访问量 416 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐