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

+1 vote

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, 2020 in Big Data Hadoop by akhtar
• 38,230 points
29,795 views

1 answer to this question.

0 votes
Best answer

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, 2020 by MD
• 95,440 points

selected Dec 18, 2020 by MD

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,830 points
446 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
• 11,380 points
10,602 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
• 11,380 points
2,208 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
104,781 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,390 points
4,286 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, 2020 in Big Data Hadoop by MD
• 95,440 points
3,384 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, 2020 in Big Data Hadoop by MD
• 95,440 points
4,880 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP