hadoop中不推荐使用hdfs命令

时间:2015-03-17 08:19:37

标签: java hadoop hadoop-streaming hadoop2 hadoop-plugins

我遵循以下程序:

http://www.codeproject.com/Articles/757934/Apache-Hadoop-for-Windows-Platform https://www.youtube.com/watch?v=VhxWig96dME

在执行命令c :/hadoop-2.3.0/bin/hadoop namenode -format时,我收到了下面给出的错误消息

**DEPRECATED:Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
Exception in thread "main" java.lang.NoClassDefFountError**

我正在使用 jdk-6-windows-amd64.exe

如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

使用cmd c:/hadoop-2.3.0/bin/hdfs 替换 c:/hadoop-2.3.0/bin/hadoop

建议使用 bin / hdfs 而非 bin / hadoop

运行大量hdfs cmds