Error mapreduce.Job: Task Id : attempt_1475517800829_0009_m_000000_0, Status : FAILED Error: Java heap space

0 votes

Hi Guys,

I am trying to run one map reduce task. But I am getting this below error everytime.

20/04/17 12:19:33 INFO mapreduce.Job: Running job: job_1475517800829_0009
20/04/17 12:19:47 INFO mapreduce.Job: Job job_1475517800829_0009 running in uber mode : false
20/04/17 12:19:47 INFO mapreduce.Job: map 0% reduce 0%
20/04/17 12:20:57 INFO mapreduce.Job: map 100% reduce 0%
20/04/17 12:20:57 INFO mapreduce.Job: Task Id : attempt_1475517800829_0009_m_000000_0, Status : FAILED
Error: Java heap space
Container killed by the ApplicationMaster.
Container killed on request. Exit code is 143
Container exited with a non-zero exit code 143
Apr 17 in Big Data Hadoop by Hasid
• 370 points
31 views

1 answer to this question.

0 votes

Hi@Hasid,

To avoid this error, you have to increase heap size for your task. So, you have to add below given  property in your mapred-site.xml file.

<property>
    <name>mapred.child.java.opts</name>
    <value>-Xmx4096m</value>
</property>

Also add this below line in your hadoop-env.sh file.

export HADOOP_OPTS="-Xmx4096m"
answered Apr 17 by MD
• 23,050 points

Related Questions In Big Data Hadoop

+1 vote
1 answer

Unhandled internal error. Java heap space

Hi As your file size is too large, ...READ MORE

answered Jan 21 in Big Data Hadoop by anonymous
52 views
0 votes
1 answer

Getting error in MapReduce job.setInputFormatClass

In old Hadoop API(i.e. below Hadoop 0.20.0), ...READ MORE

answered Apr 15, 2018 in Big Data Hadoop by Shubham
• 13,380 points
584 views
0 votes
1 answer

Java MapReduce error saying No FileSystem for scheme:hdfs

The problem is with the dependencies. The ...READ MORE

answered May 9, 2018 in Big Data Hadoop by Shubham
• 13,380 points
543 views
0 votes
1 answer

Not able to run mapreduce job. Attempt failes error

The most common reason for this is ...READ MORE

answered Nov 22, 2018 in Big Data Hadoop by Omkar
• 69,060 points
136 views
+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,086 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
724 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,124 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,899 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
• 23,050 points
96 views