title: Hadoop master: nice: /bin/yarn: No such file or directory
body: <p>Hadoop 2.4.1 setup was working fine, i wanted to use yarn framework so i updated the config files as below:</p>
  
  <p>yarn-site.xml</p>
  
  <pre><code>&lt;property&gt;
      &lt;name&gt;yarn.nodemanager.local-dirs&lt;/name&gt;
      &lt;value&gt;/var/hadoop/yarn&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.nodemanager.aux-services&lt;/name&gt;
      &lt;value&gt;mapreduce_shuffle&lt;/value&gt;
      &lt;final&gt;true&lt;/final&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>mapred-site.xml</p>
  
  <pre><code>&lt;property&gt;
      &lt;name&gt;mapreduce.framework.name&lt;/name&gt;
      &lt;value&gt;yarn&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>yarn-env.sh</p>
  
  <pre><code>export HADOOP_MAPRED_HOME=$HADOOP_HOME
  export HADOOP_COMMON_HOME=$HADOOP_HOME
  export HADOOP_HDFS_HOME=$HADOOP_HOME
  export HADOOP_YARN_HOME=$HADOOP_HOME
  export HADOOP_YARN_HOME=$HADOOP_HOME
  export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
  export YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop
  </code></pre>
  
  <p>NodeManager logs are not logged in the default location as previously but in a separate location <code>/logs</code> and the first line shows</p>
  
  <pre><code>nice: /bin/yarn: No such file or directory
  </code></pre>
  
  <p>What Hadoop is trying to do is that the /bin/yarn is what it's assuming to be present but it's not there.</p>