title: Command "hadoop fs -ls ." does not work
body: <p>I think I have installed hadoop correctly. If I do <code>jps</code> I can see the namenode and datanode, no problem.</p>
  
  <p>When I type <code>hadoop fs -ls .</code> I get the error:</p>
  
  <pre><code>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 &lt;libfile&gt;', 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
  </code></pre>
  
  <p>When I type <code>hadoop dfs -ls .</code> I get the error:</p>
  
  <pre><code>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 &lt;libfile&gt;', 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
  </code></pre>
  
  <p>And when I type <code>hadoop hdfs -ls .</code> I get the error:</p>
  
  <p><code>Error: Could not find or load main class hdfs</code></p>
  
  <p>This is regardless of whether I put '.' or '/' or whatever directory I'm in.</p>
  
  <p>What does this all mean? How can I get normal, expected output? What am I missing?</p>