title: hadoop nodemanager not start ,slave doesn't satisfy minimum allocations
body: <p>When running start-all.sh my slave1 and slave2 can't find nodemanager in jps</p>
  
  <p>Work on  Ubuntu 16.04 with VM virtualbox
  master</p>
  
  <pre><code>yunchi@master:~$ jps
  15920 Jps
  15505 SecondaryNameNode
  15659 ResourceManager
  15293 NameNode
  </code></pre>
  
  <p>slave1</p>
  
  <pre><code>yunchi@slave1:~$ jps
  7587 DataNode
  7945 Jps
  </code></pre>
  
  <p>slave2</p>
  
  <pre><code>yunchi@slave2:~$ jps
  7138 DataNode
  7374 Jps
  </code></pre>
  
  <p>this is my nodemanager-slave1.log</p>
  
  <p>2017-10-12 17:26:59,662 ERROR org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl: Unexpected error starting NodeStatusUpdater
  org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Recieved SHUTDOWN signal from Resourcemanager ,Registration of NodeManager failed, Message from ResourceManager: NodeManager from  slave1 doesn't satisfy minimum allocations, Sending SHUTDOWN signal to the NodeManager.
      at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.registerWithRM(NodeStatusUpdaterImpl.java:278)
      at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.serviceStart(NodeStatusUpdaterImpl.java:197)
      at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
      at org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:120)
      at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceStart(NodeManager.java:272)
      at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
      at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:496)
      at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:543)</p>
  
  <p>2017-10-12 17:26:59,710 FATAL org.apache.hadoop.yarn.server.nodemanager.NodeManager: Error starting NodeManager
  org.apache.hadoop.yarn.exceptions.YarnRuntimeException: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Recieved SHUTDOWN signal from Resourcemanager ,Registration of NodeManager failed, Message from ResourceManager: NodeManager from  slave1 doesn't satisfy minimum allocations, Sending SHUTDOWN signal to the NodeManager.
      at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.serviceStart(NodeStatusUpdaterImpl.java:203)
      at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
      at org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:120)
      at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceStart(NodeManager.java:272)
      at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
      at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:496)
      at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:543)
  Caused by: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Recieved SHUTDOWN signal from Resourcemanager ,Registration of NodeManager failed, Message from ResourceManager: NodeManager from  slave1 doesn't satisfy minimum allocations, Sending SHUTDOWN signal to the NodeManager.
      at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.registerWithRM(NodeStatusUpdaterImpl.java:278)
      at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.serviceStart(NodeStatusUpdaterImpl.java:197)
      ... 6 more</p>
  
  <p>I have found some relative information.They tell me to add </p>
  
  <pre><code>&lt;property&gt;
  &lt;name&gt;yarn.nodemanager.resource.memory-mb&lt;/name&gt;
  &lt;value&gt;1024&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>but it's still not work. </p>
  
  <p>So,I set value 4096 ,still can't work </p>
  
  <p>here is my yarn-site.xml below</p>
  
  <pre><code> &lt;configuration&gt;
  &lt;property&gt;
  &lt;name&gt;yarn.resourcemanager.hostname&lt;/name&gt;
  &lt;value&gt;master&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;yarn.nodemanager.aux-services&lt;/name&gt;
  &lt;value&gt;mapreduce_shuffle&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;yarn.nodemanager.aux-services.mapreduce.shuffle.class&lt;/name&gt;
  &lt;value&gt;org.apache.hadoop.mapred.ShuffleHandler&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;yarn.resourcemanager.address&lt;/name&gt;
  &lt;value&gt;master:8032&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;yarn.resourcemanager.scheduler.address&lt;/name&gt;
  &lt;value&gt;master:8030&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;yarn.resourcemanager.resource-tracker.address&lt;/name&gt;
  &lt;value&gt;master:8031&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;yarn.resourcemanager.admin.address&lt;/name&gt;
  &lt;value&gt;master:8033&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;yarn.resourcemanager.webapp.address&lt;/name&gt;
  &lt;value&gt;master:8088&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;yarn.nodemanager.resource.memory-mb&lt;/name&gt;
  &lt;value&gt;4096&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;yarn.nodemanager.local-dirs&lt;/name&gt;
  &lt;value&gt;/home/yunchi/yarn&lt;/value&gt;
  &lt;final&gt;true&lt;/final&gt;
  &lt;/property&gt;
  
  
  &lt;property&gt;
  &lt;name&gt;yarn.scheduler.minimum-allocation-mb&lt;/name&gt;
  &lt;value&gt;1&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
  &lt;name&gt;yarn.scheduler.minimum-allocation-vcores&lt;/name&gt;
  &lt;value&gt;1&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>