从masternode执行命令“hadoop namenode-format”时出错?

x6h2sr28  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(365)

我已经配置了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

请告诉我该怎么解决?

gz5pxeao

gz5pxeao1#

哦!我修复了我在hadoop-env.sh中配置javau home的错误,现在我纠正了它,它工作正常。

相关问题