Is there any way to increase Java Heap size in Hadoop?

0 votes

I am getting JAVA Heap error when I'm running "insert into table" query in Hive. I'm using Hadoop 2.6.0 version.

Can anyone tell me how can I increase the heap size in hadoop through out the cluster?

Thanks in advance!

Apr 12, 2018 in Big Data Hadoop by kurt_cobain
• 9,310 points
1,958 views

1 answer to this question.

0 votes

You can add some more memory by editing the mapred-site.xml

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

 

Alternatively you can also edit the hadoop-env.sh file 

add 

export HADOOP_OPTS="-Xmx5096m"
 

Hope this will resolve your error.

answered Apr 12, 2018 by nitinrawat895
• 10,920 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Is there a way to rebalance single Datanode in Hadoop.

Currently Hadoop does not automatically do this. ...READ MORE

answered Apr 15, 2018 in Big Data Hadoop by kurt_cobain
• 9,310 points
106 views
0 votes
1 answer

Is there any way to write "map only" Hadoop jobs ?

You can easily set the number of ...READ MORE

answered Apr 16, 2018 in Big Data Hadoop by nitinrawat895
• 10,920 points
109 views
0 votes
9 answers

Is there any way to check which Hadoop daemons are running?

use jps command, It will show all the running ...READ MORE

answered Dec 27, 2018 in Big Data Hadoop by Rakesh
• 160 points
15,681 views
0 votes
1 answer
–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,903 views
0 votes
1 answer

Moving files in Hadoop using the Java API?

I would recommend you to use FileSystem.rename(). ...READ MORE

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

Hadoop giving java.io.IOException, in mkdir Java code.

I am not sure about the issue. ...READ MORE

answered May 3, 2018 in Big Data Hadoop by Shubham
• 13,380 points
778 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,105 views
0 votes
1 answer
0 votes
1 answer

Is there any way to access Hadoop web UI in linux?

In this case what you can do ...READ MORE

answered May 9, 2018 in Big Data Hadoop by nitinrawat895
• 10,920 points
1,123 views