title: Running Pig with a JAR as a UDF returns ERROR 101
body: <p>I'm new to Pig and Oozie, so this might be a beginners question, yet I've searched everywhere for an answer, without luck...
  I'm trying to run an UDF on Pig, the UDF is a JAR with eval method overloaded (taken from <a href="http://wiki.apache.org/pig/UDFManual" rel="nofollow">http://wiki.apache.org/pig/UDFManual</a>):</p>
  
  <pre><code>package myudfs;
  import java.io.IOException;
  import org.apache.pig.EvalFunc;
  import org.apache.pig.data.Tuple;
  import org.apache.pig.impl.util.WrappedIOException;
  
  public class UPPER extends EvalFunc&lt;String&gt;
  {
      public String exec(Tuple input) throws IOException {
          if (input == null || input.size() == 0)
              return null;
          try {
              String str = (String)input.get(0);
              return str.toUpperCase();
          } catch(Exception e) {
              throw e;
          }
      }
  }
  </code></pre>
  
  <p>while the Pig script is:</p>
  
  <pre><code>REGISTER myudfs.jar;
  Raw = LOAD '/user/piguser/input' AS (name: chararray, age: int, gpa: int);
  x = FOREACH Raw GENERATE myudfs.UPPER(name);
  RMF 'output';
  STORE x INTO 'output';
  </code></pre>
  
  <p>when running this on local (pig -f script.pig.txt) I'm receiving the desired results, yet when running this on Oozie (<code>oozie job -oozie http://localhost:11000/oozie -config job.properties -run</code>) I'm receiving the following error:
   <em>ERROR 101: Local file &apos;myudfs.jar&apos; does not exist.</em></p>
  
  <p>What would you suggest me to do?</p>
  
  <p>Thanks in advance :)</p>