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 5, 2019 in Big Data Hadoop by digger
• 26,740 points
868 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 5, 2019 by Omkar
• 69,230 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,390 points
1,047 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 4, 2018 in Big Data Hadoop by Ashish
• 2,650 points
1,283 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
1,955 views
0 votes
1 answer

What is the purpose of shuffling and sorting phase in the reducer in Map Reduce?

Hi@akhtar, Shuffle phase in Hadoop transfers the map output from ...READ MORE

answered Dec 20, 2020 in Big Data Hadoop by MD
• 95,440 points
6,722 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
• 11,380 points
10,724 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
• 11,380 points
2,279 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
106,182 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,390 points
4,367 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,230 points
5,115 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,230 points
991 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP