title: Hadoop fs mkdir and testing using FileSystem.exists
body: <p>I can create directories in my hadoop using: hadoop fs -mkdir /test/input. I can check this by browsing localhost:50070 and it works:</p>
  
  <pre><code>/test
  /tmp
  </code></pre>
  
  <p>But when I check for existence from java:</p>
  
  <pre><code>FileSystem fs = FileSystem.get(conf);
  fs.exists(new Path("/tmp")); // returns true
  fs.exists(new Path("/test")); // returns false
  </code></pre>
  
  <p>Same thing happens even when i created test inside /tmp. What's wrong? </p>
  
  <p>Thanks,</p>