我已经配置了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
请告诉我该怎么解决?
1条答案
按热度按时间gz5pxeao1#
哦!我修复了我在hadoop-env.sh中配置javau home的错误,现在我纠正了它,它工作正常。