Changing map and reduce slots

0 votes
I have a datanode for which I want to change map and reduce slots. I want to set the map and reduce slots to 4 and 2 respectively. How to set the new values and where?
Jan 4 in Big Data Hadoop by digger
• 27,620 points
23 views

1 answer to this question.

0 votes

Follow these steps to set the map and reduce slots:

Step 1: Update mapred-site.xml of namenode and add following property

<property>
<name>mapred.tasktracker.map.tasks.maximum</name>
<value >4</value>
<final>true</final>
</property> 

<property>
<name>mapred.tasktracker.reduce.tasks.maximum</name>
<value >2</value>
<final>true</final>
</property>

Step 2: Update mapred-site.xml of datanode1 and add following property

<property>
<name>mapred.tasktracker.map.tasks.maximum</name>
<value >4</value>
<final>true</final>
</property> 

<property>
<name>mapred.tasktracker.reduce.tasks.maximum</name>
<value >2</value>
<final>true</final>
</property>

Step 3: Update mapred-site.xml of datanode1 and add following property

<property>
<name>mapred.tasktracker.map.tasks.maximum</name>
<value >4</value>
<final>true</final>
</property> 

<property>
<name>mapred.tasktracker.reduce.tasks.maximum</name>
<value >2</value>
<final>true</final>
</property> 

Hope this helps!

answered Jan 4 by Omkar
• 67,120 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Map and Reduce task memory settings in Hadoop YARN

It's preferable and generally, it is recommended ...READ MORE

answered Apr 18, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
61 views
0 votes
1 answer

Setting the Number of Map tasks and Reduce Tasks not Working

The command that you are running is ...READ MORE

answered May 3, 2018 in Big Data Hadoop by Ashish
• 2,630 points
106 views
0 votes
1 answer

How to set up Map and Reduce Tasks?

when using the basic FileInputFormat classes is just the ...READ MORE

answered 6 days ago in Big Data Hadoop by ravikiran
• 3,400 points
27 views
0 votes
1 answer

How to set the number of Map & Reduce tasks?

The map tasks created for a job ...READ MORE

answered Apr 18, 2018 in Big Data Hadoop by Shubham
• 13,110 points
45 views
0 votes
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,030 points
2,038 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,030 points
192 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,381 views
0 votes
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,240 points
760 views
0 votes
1 answer

What is the difference between Map-side join and Reduce-side join?

Join is a clause that combines the records ...READ MORE

answered Dec 13, 2018 in Big Data Hadoop by Omkar
• 67,120 points
98 views
0 votes
1 answer

Which side join is taken by default by hive? Map-side or Reduce-side?

The syntax for Map-side join and Reduce-side ...READ MORE

answered Dec 13, 2018 in Big Data Hadoop by Omkar
• 67,120 points
93 views