복붙노트

[HADOOP] hadoop (또는 dfs 명령)을 실행할 때 더 이상 사용되지 않는 오류가 계속 나타나는 이유는 무엇입니까?

HADOOP

hadoop (또는 dfs 명령)을 실행할 때 더 이상 사용되지 않는 오류가 계속 나타나는 이유는 무엇입니까?

내가 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.

내가 봤 거든 주위에 그것 hadoop - 0.23에 대한 버그 것 같습니다. 그러나, 내 버전이 더 최근입니다.

이 버전에 대한 답을 찾을 수 없습니다. 여전히 기존 버그입니까?

해결법

  1. ==============================

    1.dfs는 "fs"명령에 찬성하여 더 이상 사용되지 않습니다. 예를 들면 다음과 같습니다.

    dfs는 "fs"명령에 찬성하여 더 이상 사용되지 않습니다. 예를 들면 다음과 같습니다.

    hadoop fs -copyFromLocal input input // this uses FsShell
    

    대신이 :

    hadoop dfs -copyFromLocal input input // this uses the now deprecated HDFS-specific DFSShell
    

    차이점에 대한 좋은 배경을 여기에 있습니다.

    http://nsinfra.blogspot.com/2012/06/difference-between-hadoop-dfs-and.html

  2. from https://stackoverflow.com/questions/11715082/why-is-it-keep-showing-deprecated-error-when-running-hadoop-or-dfs-command by cc-by-sa and MIT license