title: Hadoop: Namenode does not start. JPS Shows only DataNode to be running
body: <p>I'm building a hadoop cluster with two Ubuntu boxes. I have a dedicated Hadoop user on each machine called "hduser". When I use "start-dfs.sh" on the master, the DataNode is created on both the master and the slave. But the NameNode is not created on the master. Even when I ask the daemon to specifically start NameNode, it doesn't work.</p>
  
  <pre><code>hduser@hbase1:~$ bash /usr/local/hadoop/sbin/hadoop-daemon.sh start namenode
  starting namenode, logging to /usr/local/hadoop/logs/hadoop-hduser-namenode-hbase1.out
  hduser@hbase1:~$ jps
  20992 Jps
  19492 DataNode
  </code></pre>
  
  <p>The log file contains this:</p>
  
  <pre><code>2013-12-31 14:45:52,585 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode:
  Exception in namenode join
  java.net.BindException: Port in use: 0.0.0.0:50070
  at org.apache.hadoop.http.HttpServer.openListener(HttpServer.java:742)
  at org.apache.hadoop.http.HttpServer.start(HttpServer.java:686)
  at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.
  start(NameNodeHttpServer.java:153)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:626)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:488)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.&lt;init&gt;(NameNode.java:684)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.&lt;init&gt;(NameNode.java:669)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1254)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1320)
  Caused by: java.net.BindException: Address already in use
  at sun.nio.ch.Net.bind0(Native Method)
  at sun.nio.ch.Net.bind(Net.java:174)
  at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:139)
  at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
  at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
  at org.apache.hadoop.http.HttpServer.openListener(HttpServer.java:738)
  ... 8 more
  2013-12-31 14:45:52,588 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
  2013-12-31 14:45:52,591 INFO org.apache.hadoop.hdfs.server.namenode.NameNode:SHUTDOWN_MSG:
  </code></pre>