title: Hadoop error while installing "cannot execute not a directory"
body: <p>Iam trying to install Hadoop 2.6.0 in my local system for some research purpose but when i complete my configurations and java installations the installation stops. It encounters an error at the time of executing the command </p>
  
  <pre><code>"hdfs namenode -format"
  </code></pre>
  
  <p>The error message i get is as follows</p>
  
  <blockquote>
    <p>"usr/local/hadoop/bin/hdfs: line 276:
    /usr/lib/jvm/java-7-oracle/jre/bin/java/bin/java: Not a directory
    /usr/local/hadoop/bin/hdfs: line 276: exec:
    /usr/lib/jvm/java-7-oracle/jre/bin/java/bin/java: cannot execute: Not
    a directory"</p>
  </blockquote>
  
  <p>I was wondering if anyone have encountered this error before.
  Help me solve this.... Thanks in advance </p>