首页 > 解决方案 > HIVE:执行错误,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 2

问题描述

我在我的系统中设置了 HIVE。当我运行如下正常查询时,查询执行良好。

   select * from employee;
   select * from employee where age=29

但是当我使用 distinct 关键字运行时,出现以下错误。

Error during job, obtaining debugging information...
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
MapReduce Jobs Launched: 

除了普通查询之外,大多数 HiveQL 语句都因相同的错误而失败(例如:insert into table employee1 select * from employee limit 5)我能知道,如何在这里找出根本原因和可能的解决方案。

标签: hadoophive

解决方案


推荐阅读