title: FileNotFoundException with Pig
body: <p>I am running shell script with pig command</p>
  
  <p><code>pig -param_file some-filename</code> but I am getting following exception : <code>FileNotFoundException</code>. I checked and that file exists at the given location. What could  cause the problem ?</p>
  
  <h2>Error before Pig is launched</h2>
  
  <pre><code>ERROR 2997: Encountered IOException. File some-file.properties does not exist
  
  java.io.FileNotFoundException: File some-file.properties does not exist
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:520)
      at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:398)
      at org.apache.pig.impl.io.FileLocalizer.fetchFilesInternal(FileLocalizer.java:791)
      at org.apache.pig.impl.io.FileLocalizer.fetchFile(FileLocalizer.java:735)
      at org.apache.pig.Main.fetchRemoteParamFiles(Main.java:756)
      at org.apache.pig.Main.run(Main.java:408)
      at org.apache.pig.Main.main(Main.java:157)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
  </code></pre>