hive报FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

hive可以进行如select * from t;简单查询;

一旦进行如select count(*) from t;就报错Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask;

查看日志如下:

2018-06-05 03:06:08,935 ERROR [main]: exec.Task (SessionState.java:printError(960)) - Ended Job = job_1528139042502_0001 with errors

2018-06-05 03:06:08,950 ERROR [Thread-28]: exec.Task (SessionState.java:printError(960)) - Error during job, obtaining debugging information...

在网上查找了n多解决方法,依然没有解决。hive报FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask_第1张图片

问题已经解决,一般是hadoop的安装出了问题,按照我的博文“

hadoop-2.x安装一套完整教程,亲自测试可行”来安装的hadoop是没有问题的。

你可能感兴趣的:(hadoop,hive)