title: Formatting Namenode in ubuntu
body: <p>I am trying to install hadoop on ubuntu 12.04.Following is the error i get on typing: </p>
  
  <pre><code>/usr/local/hadoop/bin/hadoop namenode -format
  </code></pre>
  
  <blockquote>
    <p>ERROR namenode.NameNode: java.io.IOException: Cannot remove current directory: /app/hadoop/tmp/dfs/name/current</p>
  </blockquote>
  
  <p>On typing <code>/usr/local/hadoop/bin/start-all.sh namenode</code> does not start </p>