DEPRECATED: Use of this script to execute hdfs command is deprecated
本人安裝的hadoop版本是2.6.0的,但每次執行命令時都會顯示下面的資訊
[[email protected]]$ hadoop dfs -ls
DEPRECATED: Use ofthis script. to execute hdfs command is deprecated.
Instead use the hdfscommand for it.
原來從0.21.0版本以後,hadoop 命令換成了hdfs命令,上面的命令如同下面的命令:
[[email protected] hadoop]$ hdfs dfs -ls // 這時就沒有錯誤了