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

0 votes

I am trying to run one Map Reduce task using hive command line. But I am getting this bellow error.

2020-04-14 04:21:25,614 Stage-2 map = 74%,  reduce = 0%, Cumulative CPU 428.9 sec
2020-04-14 04:21:31,757 Stage-2 map = 75%,  reduce = 0%, Cumulative CPU 441.44 sec
2020-04-14 04:21:34,830 Stage-2 map = 76%,  reduce = 0%, Cumulative CPU 447.75 sec
2020-04-14 04:21:37,899 Stage-2 map = 77%,  reduce = 0%, Cumulative CPU 454.08 sec
2020-04-14 04:21:40,969 Stage-2 map = 100%,  reduce = 100%, Cumulative CPU 226.61 sec
MapReduce Total cumulative CPU time: 3 minutes 46 seconds 610 msec
Ended Job = job_1539457190739_0353 with errors
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
MapReduce Jobs Launched:
Stage-Stage-2: Map: 5  Reduce: 120   Cumulative CPU: 226.61 sec   HDFS Read: 100122946 HDFS Write: 0 FAIL
Total MapReduce CPU Time Spent: 3 minutes 46 seconds 610 msec
, Hive SQL state [08S01].
2020-04-14 04:23:54.740 <OnDemandDTM-pool-2-thread-47> SEVERE: [HIVE_1106] The Integration Service failed to run the mapping due to an exception. See the additional error messages for more information.

How can I solve this error?

Apr 17 in Big Data Hadoop by akhtar
• 11,270 points
316 views

1 answer to this question.

0 votes

Hi@akhtar,

This issue generally occurs when the memory configured for the 'Map' task is insufficient to complete the task. To resolve the issue, it would be required to increase the memory for 'Map Task'  from existing value.

To do that you have to edit your mapred-site.xml file and increase the value of the attributes 'mapreduce.map.memory.mb' and 'mapreduce.reduce.memory.mb'

Hope this will help you.

answered Apr 17 by MD
• 24,500 points

Related Questions In Big Data Hadoop

0 votes
1 answer
0 votes
1 answer

How to upgrade Apache Hadoop from 2.4.1 to 2.6.0?

If the downtime is not an issue, ...READ MORE

answered Sep 7, 2018 in Big Data Hadoop by Frankie
• 9,810 points
51 views
+2 votes
1 answer
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,920 points
5,116 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,920 points
732 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
30,402 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,310 points
1,907 views
0 votes
1 answer

ERROR org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - ZooKeeper exists failed after 4 attempts

Hi@akhtar, This error shows, Hbase is not able ...READ MORE

answered Mar 31 in Big Data Hadoop by MD
• 24,500 points
101 views
0 votes
1 answer

ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet!

Hi@akhtar, This error occurs if the hbase server ...READ MORE

answered Mar 30 in Big Data Hadoop by MD
• 24,500 points
156 views