hadfs fs -ls/ at cloudera@localhost ~]$ is not working



0

Hi 

I am using hadfs fs -ls/ at cloudera@localhost ~]$ . throwing the exception.

 

cloudera@localhost ~]$ hadoop fs-ls/
Exception in thread "main" java.lang.NoClassDefFoundError: fs-ls/
Caused by: java.lang.ClassNotFoundException: fs-ls.
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: fs-ls/.  Program will

 


1 Answer(s)


0

Hi Sapna,

There is space between ls and '/'. The correct command is:

$ hadoop fs -ls /

Hope this helps.

Thanks.

 

Note: Please vote up if you like the answer.