当前位置:   article > 正文

解决Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask_error while processing statement: failed: executio

error while processing statement: failed: execution error, return code 2 fro

hive在运行hql语句时报如下错误:

Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask (state=08S01,code=2)

原因:Hadoop内存不足导致

解决方法:
在Hadoop的配置文件Hadoop-env.sh中修改如下配置:

原来为
export HADOOP_CLIENT_OPTS="-Xmx128m $HADOOP_CLIENT_OPTS"

修改为:
export HADOOP_CLIENT_OPTS="-Xmx2048m $HADOOP_CLIENT_OPTS"
  • 1
  • 2
  • 3
  • 4
  • 5

然后重启Hadoop即可

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/728453
推荐阅读
相关标签
  

闽ICP备14008679号