1. Create a directory to store the logfiles. For example, /root/hadoop_logs .
2. Uncomment the line that includes HADOOP_LOG_DIR in HADOOP_HOME/conf/hadoop-env.sh and point it to the new directory.
3. Add the following lines to the HADOOP_HOME/conf/mapred-site.xml file:
<property>
<name>mapred.tasktracker.map.tasks.maximum</name>
<name>mapred.tasktracker.reduce.tasks.maximum</name>
4. Restart the Hadoop cluster by running the bin/stop-mapred.sh andbin/start-mapred.sh commands from the HADOOP_HOME directory.