问题
As I am following below procedure:
http://www.codeproject.com/Articles/757934/Apache-Hadoop-for-Windows-Platform https://www.youtube.com/watch?v=VhxWig96dME.
While executing the command c:/hadoop-2.3.0/bin/hadoop namenode -format
, I got the error message given below
**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**
I am using jdk-6-windows-amd64.exe.
How to solve this issue ?
回答1:
use the cmd c:/hadoop-2.3.0/bin/hdfs to replace c:/hadoop-2.3.0/bin/hadoop
A lot of hdfs cmds are recommended to run with bin/hdfs not bin/hadoop
来源:https://stackoverflow.com/questions/29094213/hdfs-command-is-deprecated-in-hadoop