1

我已经配置了 hadoop(多节点设置)。现在在开始hadoop之前我想为此格式化namenode我运行以下命令-->>

hadoop namenode -format

它给出了一个错误-->

/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

请告诉我我应该如何解决它?

4

1 回答 1

1

哦!我修复了它我在 hadoop-env.sh 中配置 JAVA_HOME 时出错了,现在我更正了它,它工作正常。

于 2013-04-09T08:24:29.063 回答