DEPRECATED: Use of this script to execute hdfs command is deprecated

来源:互联网 发布:淘宝同学介绍 编辑:程序博客网 时间:2024/06/08 19:24

本人安装的hadoop版本是2.6.0的,但每次执行命令时都会显示下面的信息

 

[hadoop@masterhadoop]$ hadoop dfs -ls

DEPRECATED: Use ofthis script. to execute hdfs command is deprecated.

Instead use the hdfscommand for it.

 

原来从0.21.0版本以后,hadoop 命令换成了hdfs命令,上面的命令如同下面的命令:

[hadoop@master hadoop]$ hdfs dfs -ls  // 这时就没有错误了


0 0