hdfs command is deprecated in hadoop

こ雲淡風輕ζ 提交于 2019-12-02 14:58:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!