hadoop namenode -format已弃用:

时间:2018-11-19 14:32:57

标签: hadoop hadoop2

kavi@ubuntu:~/hadoop-2.2.0/bin$ ./hadoop namenode -format
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

/home/kavi/hadoop-2.2.0/bin/hdfs: line 201: /usr/lib/jvm/java-6-openjdk-i386/bin/java: No such file or directory
kavi@ubuntu:~/hadoop-2.2.0/

这是显示的错误...我需要做什么... 请指导我完成此过程

1 个答案:

答案 0 :(得分:1)

使用不推荐使用的命令替换hadoop namenode:hdfs namenode。有关更多信息,请参见HDFS Commands Guide