Member since
05-18-2016
3
Posts
2
Kudos Received
0
Solutions
07-23-2020
07:37 AM
We got the same issue and resolve as below: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask Check for more details and got error as : "Unexpected end of input stream" Now, Get the hdfs LOCATION for the table by using below command on HUE or HIVE shell: show create table <table-name>; Check for the zero byte size files and remove them from hdfs location using below command: hdfs dfs -rm -skipTrash $(hdfs dfs -ls -R <hdfs_location> | grep -v "^d" | awk '{if ($5 == 0) print $8}') Try running again our query which ran successfully this time.
... View more
06-24-2016
11:12 AM
1 Kudo
Greetings If by chance u are still looking to resolve a return code 2 error while tunning hive, I may have a solution for u if u dont get any information from the log files. Return code 2 is basically a camoflauge for an hadoop/yarn memory problem. Basically, not enough resources configured into hadoop/yarn to run your projects If u are running a single-node cluster ..see the link below http://stackoverflow.com/questions/26540507/what-is-the-maximum-containers-in-a-single-node-cluster-hadoop U may be able to tweak the settings depending on your cluster setup. If this does not cure your problem 100%, then at least the return code 2 or exit code 1 errors would disappear. Hope this helps
... View more
05-19-2016
12:41 AM
I'm not seeing the same issue here. Check the yarn application logs. It will surely contain information about the issue.
... View more