Home Forums HDFS execute "hdfs dfs -ls" get "No FileSystem for scheme: hdfs" error

This topic contains 2 replies, has 2 voices, and was last updated by  Katrina Poon 4 months, 3 weeks ago.

  • Creator
    Topic
  • #54826

    Katrina Poon
    Participant

    execute “hdfs dfs -ls” get “No FileSystem for scheme: hdfs” error

    Installed hadoop 2.4.0.2.1.2.1-471, cluster through Ambari. After installation and all services started, I tried to to run some ‘hdfs’ shell command to make sure things are working properly. However, I am getting errors of ” No FileSystem for scheme: hdfs”
    googling around suggest CLASSPATH issue. Tried various CLASSPATH setting, but no

    I am logged in as ‘hdfs’ tried execute following :
    /usr/bin/hdfs dfs -copyFromLocal /etc/passwd /passwdTest
    /usr/bin/hdfs dfs -ls

    Here are the errors:
    ———————–
    bash-4.1$ /usr/bin/hdfs dfs -copyFromLocal /etc/passwd /passwdTest
    copyFromLocal: No FileSystem for scheme: hdfs
    bash-4.1$
    bash-4.1$ hdfs dfs -ls
    ls: No FileSystem for scheme: hdfs
    bash-4.1$ echo $CLASSPATH
    .;:/usr/lib/hadoop:/usr/lib/hadoop-hdfs:/usr/lib/hadoop/lib:/usr/lib/hadoop-hdfs/lib:/usr/share/java;/usr/lib/hadoop/lib/native/

    bash-4.1$ whoami
    hdfs
    bash-4.1$

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #54831

    Katrina Poon
    Participant

    same error:

    bash-4.1$ hdfs dfs -ls /
    ls: No FileSystem for scheme: hdfs
    bash-4.1$

    Collapse
    #54829

    Jing Zhao
    Participant

    Hi Katrina,

    Please try “hdfs dfs -ls /”. You need to provide the path for the ls command.

    Thanks,
    -Jing

    Collapse
Viewing 2 replies - 1 through 2 (of 2 total)