title: Get the application ID while running a MapReduce job
body: <p>Is there any way to fetch the application ID when running - for example - the <em>wordcount</em> example with the <code>yarn</code> command?</p>
  
  <p>I wish to initiate a job from another process with the <code>yarn</code> command, and monitor the status of the job through the YARN REST API.</p>
  
  <p>(Using Hadoop 2.4.0)</p>