복붙노트

[HADOOP] "hadoop fs -ls."명령이 작동하지 않습니다.

HADOOP

"hadoop fs -ls."명령이 작동하지 않습니다.

나는 내가 올바르게 hadoop을 설치했다고 생각한다. jps를하면 namenode와 datanode를 볼 수 있습니다.

내가 hadoop fs -ls를 타이프 ​​할 때. 오류가 발생했습니다.

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /opt/db/hadoop-2.4.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
14/08/08 12:42:44 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ls: '.': No such file or directory

내가 hadoop dfs -ls를 타이프 ​​할 때. 오류가 발생했습니다.

DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /opt/db/hadoop-2.4.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
14/08/08 12:43:27 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ls: '.': No such file or directory

그리고 내가 hadoop hdfs -ls를 타이프 ​​할 때. 오류가 발생했습니다.

오류 : 주 클래스 hdfs를 찾지 못했습니다.

이것은 내가 넣는 것과 상관없이 '.' 또는 '/'또는 내가 속한 디렉토리.

이게 무슨 뜻입니까? 정상적인 출력을 얻으려면 어떻게해야합니까? 내가 뭘 놓치고 있니?

해결법

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

    1.용도

    용도

    hdfs dfs -ls ...
    

    나는 hadoop hdfs와 같은 것이 있다고 생각하지 않는다.

  2. ==============================

    2.다음과 같이 명령을 사용하십시오

    다음과 같이 명령을 사용하십시오

    bin/hadoop fs -ls /
    
  3. from https://stackoverflow.com/questions/25201731/command-hadoop-fs-ls-does-not-work by cc-by-sa and MIT license