As I am following below procedure:
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 ?
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