Sandeep vashisth
Sandeep vashisth

Reputation: 1088

error while executing command "hadoop namenode -format " from masternode?

I have configured hadoop(multi-node setup). Now before starting hadoop i want to format namenode for this i run the below command -->>

hadoop namenode -format

It gives an error which is-->

/home/sandip/project/hadoop-1.1.2/bin/hadoop: line 320: /usr/lib/jvm/java-6-openjdk-  
i386/jre/bin/java/bin/java: Not a directory
/home/sandip/project/hadoop-1.1.2/bin/hadoop: line 390: /usr/lib/jvm/java-6-openjdk-    
i386/jre/bin/java/bin/java: Not a directory
/home/sandip/project/hadoop-1.1.2/bin/hadoop: line 390: exec: /usr/lib/jvm/java-6-openjdk-   
i386/jre/bin/java/bin/java: cannot execute: Not a directory

plz tell me how should i resolve it ?

Upvotes: 1

Views: 925

Answers (1)

Sandeep vashisth
Sandeep vashisth

Reputation: 1088

ooh! i fixed it i had mistake in configuring JAVA_HOME in hadoop-env.sh now i corrected it and it's working fine.

Upvotes: 1

Related Questions