title: How do I reference a local hdfs file from within mapreduce?
body: <p>I'd like to reference a file that is on the hdfs cluster in hadoop from within my mapreduce script.  </p>
  
  <p>Is it possible to do this without using the full path (hdfs://ip/path/to/file) but instead using a local /path/to/file reference?  I'm using java and tried something like:</p>
  
  <pre><code>    File file = new File(stringPathToFile);
  </code></pre>
  
  <p>But that seems to reference the local filesystem.</p>
  
  <p>Thanks in advance!</p>