Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the number of containers in nodemanager in YARN

A node in my YARN cluster has 64GB memory and 24 cores. I set the following properties in the yarn-site.xml:

<property>
  <name>yarn.nodemanager.resource.memory-mb</name>
  <value>32768</value>
</property>
<property>
  <name>yarn.nodemanager.resource.cpu-vcores</name>
  <value>16</value>
</property>

But I found still the nodemanager in the node has only 7 containers. What are other properties I need to set?

like image 495
kee Avatar asked Nov 16 '13 17:11

kee


1 Answers

You need to tell YARN how to break down the memory to containers so for instance if you set the memory per container to 2GB will give you 16 containers

<name>yarn.scheduler.minimum-allocation-mb</name>
<value>2048</value>
like image 179
Arnon Rotem-Gal-Oz Avatar answered Nov 10 '22 00:11

Arnon Rotem-Gal-Oz