title: HDFS: FileSystem.exists(path) return false on existing resource?
body: <p>I am having in a locally running Hadoop HDFS (my work station is name/data node) difficulties to access files.</p>
  
  <p>In my HDFS I have a file located in the folder <code>"/huser/data.txt"</code>
  I can confirm with <code>hdfs dfs -ls /huser</code> that the file exists.</p>
  
  <p>I create the FileSystem by calling <code>FileSystem.get(uri, config)</code>, uri being <code>hdfs://localhost:9000</code> 
  If I call the exist method of <code>org.apache.hadoop.fs.FileSystem</code> I get always a <code>false</code> as return value.</p>
  
  <p>I tried various parameter combinations, but I am wondering what I am doing wrong:</p>
  
  <pre><code>fs.exists(new Path("hdfs:/huser/data.txt")) 
  fs.exists(new Path("hdfs://huser/data.txt")) 
  </code></pre>
  
  <p>both don't work.</p>
  
  <p>I tried also using a MiniDFSCluster to provide a minimal working example, but unfortunately it works there. I seem to have an issue with a live HDFS and accessing the files (Hadoop 2.6). </p>