title: Oozie Pig action stuck in PREP state and job is in RUNNING state
body: <p>I want to run a simple workflow but it gets stuck in PREP state every time i submit the job. Here i am trying to read the values from text file which are comma separated and print them on screen. Fot this i am using following properties file, workflow file and script file.</p>
  
  <p>Environment:<br>
  Hadoop: 2.6.0 (1 namenode and 2 datanode)<br>
  Oozie : 4.1.0<br>
  Pig   : 0.14.0</p>
  
  <p>This is my Properties File:<br>
   `</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;configuration&gt;
  &lt;property&gt;
          &lt;name&gt;nameNode&lt;/name&gt;
          &lt;value&gt;hdfs://&lt;IP/aliasname&gt;:&lt;port&gt;&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
          &lt;name&gt;jobTracker&lt;/name&gt;
          &lt;value&gt;&lt;IP/aliasname&gt;:&lt;port&gt;&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
          &lt;name&gt;oozie.libpath&lt;/name&gt;
          &lt;value&gt;&lt;path/to/pig/jars&gt;&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
          &lt;name&gt;oozie.wf.application.path&lt;/name&gt;
          &lt;value&gt;&lt;path/to/workflow app/in hdfs&gt;&lt;/value&gt;
  &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>`</p>
  
  <p>This is my Workflow: </p>
  
  <pre><code>    &lt;workflow-app name="samplewrokflow" xmlns="uri:oozie:workflow:0.2"&gt;
      &lt;start to="TestJob"/&gt; 
      &lt;action name="TestJobR"&gt;
          &lt;pig&gt;
              &lt;job-tracker&gt;&lt;IP/alias name&gt;:&lt;port&gt;&lt;/job-tracker&gt;
              &lt;name-node&gt;hdfs://&lt;IP/alias name&gt;:&lt;port&gt;&lt;/name-node&gt;
              &lt;script&gt;&lt;Path/to/pig/script&gt;&lt;/script&gt;
          &lt;/pig&gt;
           &lt;ok to="success"/&gt; 
              &lt;error to="fail"/&gt;  
     &lt;/action&gt;
    &lt;kill name="fail"&gt; 
         &lt;message&gt;The Identity Map-Reduce job failed!&lt;/message&gt; 
     &lt;/kill&gt;
    &lt;end name="success"/&gt;
  &lt;/workflow-app&gt;
  </code></pre>
  
  <p>This is my Pig script:</p>
  
  <pre><code>DATA = LOAD 'path/to/sample.txt' USING PigStorage(',') as (name1:chararray,name2:chararray,number:int);DUMP DATA;
  </code></pre>
  
  <p>This is my content in sample.txt:<br>
  abc,xyz,1</p>
  
  <p>Command used to run the job:</p>
  
  <pre><code>oozie job --oozie http://&lt;IP address&gt;:&lt;port&gt;/oozie -config &lt;path/to/configuration file&gt; -run
  </code></pre>
  
  <p>After running this command i get the job Id from screen.</p>
  
  <p>This is my oozie job logs:</p>
  
  <pre><code>2015-06-08 10:58:56,814  INFO ActionStartXCommand:543 - SERVER[pal-hadoop1.cloudapp.net] USER[hadoop1] GROUP[-] TOKEN[] APP[WorkFlow_R] JOB[0000026-150603135220320-oozie-oozi-W] ACTION[0000026-150603135220320-oozie-oozi-W@:start:] Start action [0000026-150603135220320-oozie-oozi-W@:start:] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]
  
  2015-06-08 10:58:56,815  INFO ActionStartXCommand:543 - SERVER[pal-hadoop1.cloudapp.net] USER[hadoop1] GROUP[-] TOKEN[] APP[WorkFlow_R] JOB[0000026-150603135220320-oozie-oozi-W] ACTION[0000026-150603135220320-oozie-oozi-W@:start:] [***0000026-150603135220320-oozie-oozi-W@:start:***]Action status=DONE
  
  2015-06-08 10:58:56,815  INFO ActionStartXCommand:543 - SERVER[pal-hadoop1.cloudapp.net] USER[hadoop1] GROUP[-] TOKEN[] APP[WorkFlow_R] JOB[0000026-150603135220320-oozie-oozi-W] ACTION[0000026-150603135220320-oozie-oozi-W@:start:] [***0000026-150603135220320-oozie-oozi-W@:start:***]Action updated in DB!
  </code></pre>
  
  <p>When i get the info using job Id it shows that the job is in PREP state always.</p>
  
  <p>I executed the script independently using pig and it worked fine.</p>
  
  <p>My workflow directory in hdfs structure:</p>
  
  <pre><code>oozie-wf/pigscript.pig   
  oozie-wf/workflow.xml  
  oozie-wf/sample.txt  
  oozie-wf/lib (Contains all pig jar files)
  </code></pre>
  
  <p>Can you tell me what would be the possible issue here because i could not rectify it from my side? and let me know if you require more details.</p>