2

I think I have installed hadoop correctly. If I do jps I can see the namenode and datanode, no problem.

When I type hadoop fs -ls . I get the error:

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

When I type hadoop dfs -ls . I get the error:

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

And when I type hadoop hdfs -ls . I get the error:

Error: Could not find or load main class hdfs

This is regardless of whether I put '.' or '/' or whatever directory I'm in.

What does this all mean? How can I get normal, expected output? What am I missing?

vefthym
  • 7,422
  • 6
  • 32
  • 58
Ree
  • 863
  • 2
  • 18
  • 38

2 Answers2

2

Use

hdfs dfs -ls ...

I dont think there is such a thing as hadoop hdfs

samthebest
  • 30,803
  • 25
  • 102
  • 142
  • makes no difference in the output for me! I actually found hadoop does work in the end :) – Ree Aug 08 '14 at 12:49
-2

use the command as follows

bin/hadoop fs -ls /
Surendran
  • 1
  • 1