title: How to get oozie jobId in oozie workflow?
body: <p>I have a oozie workflow that will invoke a shell file, Shell file will further invoke a driver class of mapreduce job. Now i want to map my oozie jobId to Mapreduce jobId for later process. Is there any way to get oozie jobId in workflow file so that i can pass the same as argument to my driver class for mapping.</p>
  
  <p>Following is my sample workflow.xml file</p>
  
  <pre><code>&lt;workflow-app xmlns="uri:oozie:workflow:0.4" name="test"&gt;
  &lt;start to="start-test" /&gt;
  &lt;action name='start-test'&gt;
      &lt;shell xmlns="uri:oozie:shell-action:0.2"&gt;
          &lt;job-tracker&gt;${jobTracker}&lt;/job-tracker&gt;
          &lt;name-node&gt;${nameNode}&lt;/name-node&gt;
          &lt;configuration&gt;
              &lt;property&gt;
                  &lt;name&gt;mapred.job.queue.name&lt;/name&gt;
                  &lt;value&gt;${queueName}&lt;/value&gt;
              &lt;/property&gt;
          &lt;/configuration&gt;
          &lt;exec&gt;${jobScript}&lt;/exec&gt;
          &lt;argument&gt;${fileLocation}&lt;/argument&gt;
          &lt;argument&gt;${nameNode}&lt;/argument&gt;
          &lt;argument&gt;${jobId}&lt;/argument&gt; &lt;!-- this is how i wanted to pass oozie jobId --&gt; 
          &lt;file&gt;${jobScriptWithPath}#${jobScript}&lt;/file&gt;
      &lt;/shell&gt;
      &lt;ok to="end" /&gt;
      &lt;error to="kill" /&gt;
  &lt;/action&gt;
  &lt;kill name="kill"&gt;
      &lt;message&gt;test job failed
          failed:[${wf:errorMessage(wf:lastErrorNode())}]&lt;/message&gt;
  &lt;/kill&gt;
  &lt;end name="end" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>Following is my shell script.</p>
  
  <pre><code>hadoop jar testProject.jar testProject.MrDriver $1 $2 $3
  </code></pre>