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,640 points
31 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,380 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
79 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
131 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 in Big Data Hadoop by Rashi
46 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,290 points
68 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,670 points
2,684 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,670 points
279 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
13,327 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
978 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,380 points
135 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,380 points
106 views