hive使用count()函数卡在kill command报错:Error during job, obtaining debugging information...
本文借鉴: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>
注意 配置文件的格式和内容千万别写错,不然运行也不成功哦(血的教训.......)
- 点赞
- 收藏
- 分享
- 文章举报
- hive: insert数据时Error during job, obtaining debugging information 以及beyond physical memory limits
- Hive:hive在查询语句时Error during job, obtaining debugging information.
- hive: insert数据时Error during job, obtaining debugging information 以及beyond physical memory limits
- j解决sparkr中使用某些r的原生函数 发生错误Error: class(objId) == "jobj" is not TRUE的问题
- hive生产实践问题(一)在使用Hive Client跑job时,一直提示job被kill,
- PHP中使用error_log()函数来调试错误
- 函数对象 与 count_if()结合使用 例子
- ERROR :fatal error LNK1103: debugging information corrupt; recompile module
- 使用Jmail及Winwebmail发信时系统记录中的错误:502 Error: command ...
- PHP set_error_handler()函数的使用
- 使用SVN clang: error: linker command failed with exit code 1 (use -v to see invocation)
- hive中使用case、if:一个region统计业务(hive条件函数case、if、COALESCE语法介绍:CONDITIONAL FUNCTIONS IN HIVE)
- 解决使用VC运行时库函数wprintf和wcount显示中文不正确的问题
- linux中使用pthread_kill函数测试线程是否存活的例子
- PHP set_error_handler()函数的使用
- hadoop hive执行count(*)提示OutOfMemoryError: Java heap space
- linux中使用pthread_kill函数测试线程是否存活
- PHP中error_log()函数的使用方法
- how-to: resolve "java.lang.OutOfMemoryError: Java heap space" during using beeline && hiveserver2
- AndroidStudio使用第三方jar包报错(Error: duplicate files during packaging of APK)