title: namenode, datanode not list by using jps
body: <p>Environment: ubuntu 14.04, hadoop 2.6</p>
  
  <p>After I type the <code>start-all.sh</code> and <code>jps</code>, <code>DataNode</code> doesn't list on the terminal </p>
  
  <pre><code>&gt;jps
  9529 ResourceManager
  9652 NodeManager
  9060 NameNode
  10108 Jps
  9384 SecondaryNameNode
  </code></pre>
  
  <p>according to this answer : <a href="https://stackoverflow.com/questions/11889261/datanode-process-not-running-in-hadoop">Datanode process not running in Hadoop</a></p>
  
  <p>I try its best solution</p>
  
  <ul>
  <li><code>bin/stop-all.sh (or stop-dfs.sh and stop-yarn.sh in the 2.x serie)</code></li>
  <li><code>rm -Rf /app/tmp/hadoop-your-username/*</code></li>
  <li><code>bin/hadoop namenode -format (or hdfs in the 2.x series)</code></li>
  </ul>
  
  <p>However, now I get this:</p>
  
  <pre><code>&gt;jps
  20369 ResourceManager
  26032 Jps
  20204 SecondaryNameNode
  20710 NodeManager
  </code></pre>
  
  <p>As you can see, even the <code>NameNode</code> is missing, please help me.</p>
  
  <p><code>DataNode logs</code> : <a href="https://gist.github.com/fifiteen82726/b561bbd9cdcb9bf36032" rel="noreferrer">https://gist.github.com/fifiteen82726/b561bbd9cdcb9bf36032</a></p>
  
  <p><code>NmaeNode logs</code> : <a href="https://gist.github.com/fifiteen82726/02dcf095b5a23c1570b0" rel="noreferrer">https://gist.github.com/fifiteen82726/02dcf095b5a23c1570b0</a></p>
  
  <p><code>mapred-site.xml</code> :</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="configuration.xsl"?&gt;
  &lt;!--
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License. See accompanying LICENSE file.
  --&gt;
  
  &lt;!-- Put site-specific property overrides in this file. --&gt;
  
  &lt;configuration&gt;
  &lt;property&gt;
  &lt;name&gt;mapreduce.framework.name&lt;/name&gt;
   &lt;value&gt;yarn&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <h2>UPDATE</h2>
  
  <pre><code>coda@ubuntu:/usr/local/hadoop/sbin$ start-all.sh
  This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
  15/04/30 01:07:25 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  Starting namenodes on [localhost]
  coda@localhost's password: 
  localhost: chown: changing ownership of ‘/usr/local/hadoop/logs’: Operation not permitted
  localhost: mv: cannot move ‘/usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out.4’ to ‘/usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out.5’: Permission denied
  localhost: mv: cannot move ‘/usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out.3’ to ‘/usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out.4’: Permission denied
  localhost: mv: cannot move ‘/usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out.2’ to ‘/usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out.3’: Permission denied
  localhost: mv: cannot move ‘/usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out.1’ to ‘/usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out.2’: Permission denied
  localhost: mv: cannot move ‘/usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out’ to ‘/usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out.1’: Permission denied
  localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out
  localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 159: /usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out: Permission denied
  localhost: ulimit -a for user coda
  localhost: core file size          (blocks, -c) 0
  localhost: data seg size           (kbytes, -d) unlimited
  localhost: scheduling priority             (-e) 0
  localhost: file size               (blocks, -f) unlimited
  localhost: pending signals                 (-i) 3877
  localhost: max locked memory       (kbytes, -l) 64
  localhost: max memory size         (kbytes, -m) unlimited
  localhost: open files                      (-n) 1024
  localhost: pipe size            (512 bytes, -p) 8
  localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 177: /usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out: Permission denied
  localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 178: /usr/local/hadoop/logs/hadoop-coda-namenode-ubuntu.out: Permission denied
  coda@localhost's password: 
  localhost: chown: changing ownership of ‘/usr/local/hadoop/logs’: Operation not permitted
  localhost: mv: cannot move ‘/usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out.4’ to ‘/usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out.5’: Permission denied
  localhost: mv: cannot move ‘/usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out.3’ to ‘/usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out.4’: Permission denied
  localhost: mv: cannot move ‘/usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out.2’ to ‘/usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out.3’: Permission denied
  localhost: mv: cannot move ‘/usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out.1’ to ‘/usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out.2’: Permission denied
  localhost: mv: cannot move ‘/usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out’ to ‘/usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out.1’: Permission denied
  localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out
  localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 159: /usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out: Permission denied
  localhost: ulimit -a for user coda
  localhost: core file size          (blocks, -c) 0
  localhost: data seg size           (kbytes, -d) unlimited
  localhost: scheduling priority             (-e) 0
  localhost: file size               (blocks, -f) unlimited
  localhost: pending signals                 (-i) 3877
  localhost: max locked memory       (kbytes, -l) 64
  localhost: max memory size         (kbytes, -m) unlimited
  localhost: open files                      (-n) 1024
  localhost: pipe size            (512 bytes, -p) 8
  localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 177: /usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out: Permission denied
  localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 178: /usr/local/hadoop/logs/hadoop-coda-datanode-ubuntu.out: Permission denied
  Starting secondary namenodes [0.0.0.0]
  coda@0.0.0.0's password: 
  0.0.0.0: chown: changing ownership of ‘/usr/local/hadoop/logs’: Operation not permitted
  0.0.0.0: secondarynamenode running as process 20204. Stop it first.
  15/04/30 01:07:51 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  starting yarn daemons
  chown: changing ownership of ‘/usr/local/hadoop/logs’: Operation not permitted
  resourcemanager running as process 20369. Stop it first.
  coda@localhost's password: 
  localhost: chown: changing ownership of ‘/usr/local/hadoop/logs’: Operation not permitted
  localhost: nodemanager running as process 20710. Stop it first.
  coda@ubuntu:/usr/local/hadoop/sbin$ jps
  20369 ResourceManager
  2934 Jps
  20204 SecondaryNameNode
  20710 NodeManager
  </code></pre>
  
  <h2>UPDATE</h2>
  
  <pre><code>hadoop@ubuntu:/usr/local/hadoop/sbin$ $HADOOP_HOME ./start-all.sh
  This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
  15/05/03 09:32:23 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  Starting namenodes on [localhost]
  hadoop@localhost's password: 
  localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-hadoop-namenode-ubuntu.out
  hadoop@localhost's password: 
  localhost: datanode running as process 28584. Stop it first.
  Starting secondary namenodes [0.0.0.0]
  hadoop@0.0.0.0's password: 
  0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-hadoop-secondarynamenode-ubuntu.out
  15/05/03 09:32:47 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  starting yarn daemons
  starting resourcemanager, logging to /usr/local/hadoop/logs/yarn-hadoop-resourcemanager-ubuntu.out
  hadoop@localhost's password: 
  localhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-hadoop-nodemanager-ubuntu.out
  hadoop@ubuntu:/usr/local/hadoop/sbin$ jps
  6842 Jps
  28584 DataNode
  </code></pre>