Member since
08-11-2014
26
Posts
0
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
09-22-2014
01:43 PM
Good to hear that! If you have everything straightened out, please mark my previous message as an accepted answer so that other users are able to find it. If you have more issues later, then we can always start a new thread.
... View more