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 ?
ooh! i fixed it i had mistake in configuring JAVA_HOME in hadoop-env.sh now i corrected it and it's working fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.