title: how to deploy and run oozie job?
body: <p>I'm trying to do a simple job using oozie. <br> It will be a one simple Pig Action.</p>
  
  <p>I have a file : FirstScript.pig containing:</p>
  
  <pre><code>dual = LOAD 'default.dual' USING org.apache.hcatalog.pig.HCatLoader();
  store dual into 'dummy_file.txt' using PigStorage();
  </code></pre>
  
  <p>and a workflow.xml containing:</p>
  
  <pre><code>&lt;workflow-app name="FirstWorkFlow" xmlns="uri:oozie:workflow:0.2"&gt;
      &lt;start to="FirstJob"/&gt; 
      &lt;action name="FirstJob"&gt;
          &lt;pig&gt;
              &lt;job-tracker&gt;hadoop:50300&lt;/job-tracker&gt;
              &lt;name-node&gt;hdfs://hadoop:8020&lt;/name-node&gt;
              &lt;script&gt;/FirstScript.pig&lt;/script&gt;
          &lt;/pig&gt;
          &lt;ok to="okjob"/&gt;
          &lt;error to="errorjob"/&gt;
      &lt;/action&gt;
      &lt;ok name='okjob'&gt;    
          &lt;message&gt;job OK, message[${wf:errorMessage()}]&lt;/message&gt;
      &lt;/ok&gt;    
      &lt;error name='errorjob'&gt;    
          &lt;message&gt;job error, error message[${wf:errorMessage()}]&lt;/message&gt;
      &lt;/error&gt;    
  &lt;/workflow-app&gt;
  </code></pre>
  
  <p>I have created structure :<br></p>
  
  <pre><code>FirstScript
  |- lib
  |---FirstScript.pig
  |- workflow.xml
  </code></pre>
  
  <p>And what now?
  How do I deploy it and run with oozie? <br>
  Can anyone more experienced help?</p>
  
  <p>Regards<br>
  Pawel</p>