title: pig error: Job in state DEFINE instead of RUNNING - Generic solution
body: <p>A typical Pig error that occurs without much usefull information is the following:</p>
  
  <pre><code>Job in state DEFINE instead of RUNNING
  </code></pre>
  
  <p>Often found in a line like this:</p>
  
  <pre><code>Caused by: java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING
  </code></pre>
  
  <p>I have seen some examples of this error, but would like to have the generic solution for this problem.</p>