hadoop yarn configure

<property>
  <description>The minimum allocation for every container request at the RM,
  in MBs. Memory requests lower than this won't take effect,
  and the specified value will get allocated at minimum.</description>
  <name>yarn.scheduler.minimum-allocation-mb</name>
  <value>1024</value>
</property>

<property>
  <description>The maximum allocation for every container request at the RM,
  in MBs. Memory requests higher than this won't take effect,
  and will get capped to this value.</description>
  <name>yarn.scheduler.maximum-allocation-mb</name>
  <value>8192</value>
</property>

<property>
  <description>The minimum allocation for every container request at the RM,
  in terms of virtual CPU cores. Requests lower than this won't take effect,
  and the specified value will get allocated the minimum.</description>
  <name>yarn.scheduler.minimum-allocation-vcores</name>
  <value>1</value>
</property>

<property>
  <description>The maximum allocation for every container request at the RM,
  in terms of virtual CPU cores. Requests higher than this won't take effect,
  and will get capped to this value.</description>
  <name>yarn.scheduler.maximum-allocation-vcores</name>
  <value>6</value>
</property>

原文地址:https://www.cnblogs.com/huaxiaoyao/p/5002236.html