Changing map and reduce slots

–1 vote
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, 2019 in Big Data Hadoop by digger
• 26,670 points
60 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, 2019 by Omkar
• 69,040 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,310 points
230 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
383 views
0 votes
2 answers

How to set up Map and Reduce Tasks?

Hi, The number of map tasks for a ...READ MORE

answered Aug 5, 2019 in Big Data Hadoop by Rashi
300 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,380 points
187 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,484 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
808 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
33,991 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
2,068 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
• 69,040 points
663 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
• 69,040 points
192 views