title: How to access hadoop hdfs via URL and use in the program
body: <p>My hadoop dfs is accessible via</p>
  
  <p><code>http://localhost:50075/browseDirectory.jsp?dir=%2Fuser%2Fhdone%2Ftext&amp;namenodeInfoPort=50070</code></p>
  
  <p>In my program i have to replace the input with reference to my hdfs</p>
  
  <p><code>FileInputFormat.addInputPath(conf, new Path("input"));</code></p>
  
  <p>My core-site.xml has the value 
  <code>hdfs://localhost:54310</code> which i can't access using the URL.</p>
  
  <p>My actual hdfs path is <code>/users/hdone/text2</code> where all the files are located with appropriate permissions.</p>
  
  <p>So what do I write for <code>input</code> ?</p>