title: How do I view my Hadoop job history and logs using CDH4 and Yarn?
body: <p>I downloaded the CDH4 tar for Hadoop with Yarn, and jobs are running fine, but I can't figure out where to view the logs from my job.  In MRv1, I simply went to the JobTracker web app, and it had the job history.  Individual jobs' logs were accessible from here as well, or by going to logs/userlogs directory. </p>
  
  <p>In my new Yarn setup (just running on single computer), I have the logs directory, but no logs/userlogs folder.</p>
  
  <p>When I go to the ResourceManager web page, localhost:8088, there is an "All Applications" section, but no entries show here.  When I go to the JobHistory web page, localhost:19888, there are no jobs listed.</p>
  
  <p>I'm wondering if there is a configuration issue.  Here's my yarn-site.xml entries:</p>
  
  <pre><code>&lt;property&gt;
    &lt;name&gt;yarn.nodemanager.local-dirs&lt;/name&gt; 
    &lt;value&gt;/Users/dolan/cdh4/_hadoop_data/yarn/local&lt;/value&gt;
  &lt;/property&gt; 
  &lt;property&gt; 
    &lt;name&gt;yarn.nodemanager.log-dirs&lt;/name&gt;
    &lt;value&gt;/Users/dolan/cdh4/_hadoop_data/yarn/logs&lt;/value&gt; 
  &lt;/property&gt;
  &lt;property&gt; 
    &lt;name&gt;mapreduce.jobhistory.address&lt;/name&gt;
    &lt;value&gt;localhost:10020&lt;/value&gt; 
  &lt;/property&gt;
  &lt;property&gt; 
    &lt;name&gt;mapreduce.jobhistory.webapp.address&lt;/name&gt;
    &lt;value&gt;localhost:19888&lt;/value&gt; 
  &lt;/property&gt;
  &lt;property&gt;
    &lt;name&gt;yarn.app.mapreduce.am.staging-dir&lt;/name&gt;
    &lt;value&gt;/user&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>Any tips on what to debug are greatly appreciated.  </p>
  
  <p><strong>Update:</strong> I've checked the nodemanager log dir, and it is empty.  Additionally, the jobhistory directories are empty. One odd thing is that Hadoop tells me, <code>INFO mapreduce.Job: The url to track the job: http://localhost:8080/</code>, but that address isn't available when I try from browser.</p>
  
  <p><strong>Update #2:</strong> I noticed that each job I run has the same Job ID ("job_local_0001").  This seems like a configuration issue somewhere. </p>