Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask

Tags:

hadoop

hive

I am new to Hadoop, and trying to run some join queries on Hive. I created two tables (table1 and table2). I executed a Join query but getting the following error message:

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask

However, when I run this query in the Hive UI, the query gets executed, and I get correct results. Can some one help here in explaining what may be wrong?

like image 290
Gaurav Pandey Avatar asked Sep 27 '17 04:09

Gaurav Pandey


2 Answers

I just added the following before running my query and it worked.

SET hive.auto.convert.join=false;
like image 64
Gaurav Pandey Avatar answered Sep 17 '22 15:09

Gaurav Pandey


Just put this command before Query:

SET hive.auto.convert.join=false;

It definitely works!

like image 21
Sveta Fishka Avatar answered Sep 19 '22 15:09

Sveta Fishka