How to increase the number of containers in nodemanager in YARN

后端 未结 2 1582
长情又很酷
长情又很酷 2021-02-03 13:46

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


  yarn.nodemanager.reso         


        
相关标签:
2条回答
  • 2021-02-03 13:57

    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>
    
    0 讨论(0)
  • 2021-02-03 14:14

    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>
    
    0 讨论(0)
提交回复
热议问题