How to increase the number of containers in nodemanager in YARN

柔情痞子 提交于 2019-12-20 10:46:06

问题


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?


回答1:


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>



回答2:


try something like:

  <property>
    <name>mapreduce.map.memory.mb</name>
    <value>1024</value>      
  </property>

  <property>
    <name>mapreduce.reduce.memory.mb</name>
    <value>2048</value>      
  </property>


来源:https://stackoverflow.com/questions/20021566/how-to-increase-the-number-of-containers-in-nodemanager-in-yarn

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!