O'Reilly logo

Hadoop Operations and Cluster Management Cookbook by Shumin Guo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tuning JVM parameters

Configuring JVM properties plays a very important role in the performance tuning of a Hadoop cluster. In this recipe, we will outline steps to configure the JVM.

Getting ready

We assume that the Hadoop cluster has been properly configured and all the daemons are running without any issues.

Log in from the Hadoop cluster administrator machine to the cluster master node using the following command:

ssh hduser@master

How to do it...

Use the following steps to configure JVM parameters:

  1. Stop the Hadoop cluster with the following command:
    stop-all.sh
    
  2. Open the $HADOOP_HOME/conf/mapred-site.xml file and add or change, if it already exists, the following property:
    <property> <name>mapred.child.java.opts</name> <value>-Xmx512M</value> </property> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required