title: RM disappears whenever MapReduce example is ran
body: <p>I have 3 VMs, 1Master, 2Slaves
  Whenever i run both commands in my Master VM: <code>start-dfs.sh</code> and <code>start-yarn.sh</code>, the logs show me totally clean, no errors! With <code>jps</code> showing all cool. But whenever I start a <code>hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-examples-2.2.0.jar pi 2 5</code> and when i do <code>jps</code>, my ResourceManager disappears. And when I restart yarn. this message appears:</p>
  
  <pre><code>slave1: nodemanager running as process 6011. Stop it first.
  </code></pre>
  
  <p>and after the example MR ran, the console gave me:</p>
  
  <pre><code>INFO ipc.Client: Retrying connect to server: ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8/50.50.1.9:8040. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
  </code></pre>
  
  <p>Any suggestions is welcome, I'm like all day to figuring it out.</p>
  
  <p>From my MASTER VM</p>
  
  <p>/etc/hosts</p>
  
  <pre><code>127.0.0.1 localhost
  50.50.1.9 ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8
  50.50.1.8 slave1
  50.50.1.4 slave2
  </code></pre>
  
  <p>core-site.xml</p>
  
  <pre><code>&lt;name&gt;fs.default.name&lt;/name&gt;
  &lt;value&gt;hdfs://ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8:9000&lt;/value&gt;
  
  &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
  &lt;value&gt;/home/ubuntu/hadoop-2.2.0/tmp&lt;/value&gt;
  </code></pre>
  
  <p>hdfs-site.xml</p>
  
  <pre><code>&lt;name&gt;dfs.replication&lt;/name&gt;
  &lt;value&gt;3&lt;/value&gt;
  
  &lt;name&gt;dfs.namenode.name.dir&lt;/name&gt;
  &lt;value&gt;file:/home/ubuntu/hadoop-2.2.0/etc/hdfs/namenode&lt;/value&gt;
  
  &lt;name&gt;dfs.datanode.data.dir&lt;/name&gt;
  &lt;value&gt;file:/home/ubuntu/hadoop-2.2.0/etc/hdfs/datanode&lt;/value&gt;
  
  &lt;name&gt;dfs.permissions&lt;/name&gt;
  &lt;value&gt;false&lt;/value&gt;
  </code></pre>
  
  <p>yarn-site.xml</p>
  
  <pre><code>&lt;name&gt;yarn.nodemanager.aux-services&lt;/name&gt;
  &lt;value&gt;mapreduce.shuffle&lt;/value&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;name&gt;yarn.resourcemanager.resource-tracker.address&lt;/name&gt;
  &lt;value&gt;ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8:8025&lt;/value&gt;
  
  &lt;name&gt;yarn.resourcemanager.scheduler.address&lt;/name&gt;
  &lt;value&gt;ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8:8030&lt;/value&gt;
  
  &lt;name&gt;yarn.resourcemanager.address&lt;/name&gt;
  &lt;value&gt;ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8:8040&lt;/value&gt;
  
  &lt;name&gt;yarn.resourcemanager.admin.address&lt;/name&gt;
  &lt;value&gt;ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8:8141&lt;/value&gt;
  </code></pre>
  
  <p>and my slave is like this:
  core-site.xml</p>
  
  <pre><code>&lt;name&gt;fs.default.name&lt;/name&gt;
  &lt;value&gt;hdfs://ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8:9000&lt;/value&gt;
  &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
  &lt;value&gt;/home/ubuntu/hadoop-2.2.0/tmp&lt;/value&gt;
  </code></pre>
  
  <p>core-site.xml</p>
  
  <pre><code>&lt;name&gt;dfs.namenode.name.dir&lt;/name&gt;
  &lt;value&gt;file:/home/ubuntu/hadoop-2.2.0/etc/hdfs/namenode&lt;/value&gt;
  
  &lt;name&gt;dfs.datanode.data.dir&lt;/name&gt;
  &lt;value&gt;file:/home/ubuntu/hadoop-2.2.0/etc/hdfs/datanode&lt;/value&gt;
  </code></pre>
  
  <p>yarn-site.xml</p>
  
  <pre><code>&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;name&gt;yarn.resourcemanager.resource-tracker.address&lt;/name&gt;
  &lt;value&gt;ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8:8025&lt;/value&gt;
  
  &lt;name&gt;yarn.resourcemanager.scheduler.address&lt;/name&gt;
  &lt;value&gt;ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8:8030&lt;/value&gt;
  
  &lt;name&gt;yarn.resourcemanager.address&lt;/name&gt;
  &lt;value&gt;ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8:8040&lt;/value&gt;
  
  &lt;name&gt;yarn.resourcemanager.admin.address&lt;/name&gt;
  &lt;value&gt;ubuntu-378e53c1-3e1f-4f6e-904d-00ef078fe3f8:8141&lt;/value&gt;
  </code></pre>