use*_*806 5 hadoop deprecated hdfs
我已经安装了hadoop-2.0.0-alpha,但每当我执行一个命令时,它都会给我弃用错误(尽管看起来好像没有问题)
$ hadoop/bin/hadoop dfs -copyFromLocal input input
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
$ hadoop/bin/hadoop dfs -rmr input
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
rmr: DEPRECATED: Please use 'rm -r' instead.
Run Code Online (Sandbox Code Playgroud)
我用Google搜索,看起来这是hadoop-0.23的错误.但是,我的版本更新.
我找不到这个版本的答案,它仍然是一个现有的错误吗?
rIC*_*ICh 17
不推荐使用dfs而使用"fs"命令.例如,这个:
hadoop fs -copyFromLocal input input // this uses FsShell
Run Code Online (Sandbox Code Playgroud)
而不是这个:
hadoop dfs -copyFromLocal input input // this uses the now deprecated HDFS-specific DFSShell
Run Code Online (Sandbox Code Playgroud)
关于差异的一些好背景:
http://nsinfra.blogspot.com/2012/06/difference-between-hadoop-dfs-and.html