title: Cannot get Log aggregation to work on Amazon-Hadoop cluster
body: <p>I tried everything that I could to get the log to aggregate but I couldn't. So I need your help in resolving this issue:</p>
  
  <p>I added this to the yarn-site.xml and restarted but no joy.</p>
  
  <pre><code>&lt;property&gt;
      &lt;name&gt;yarn.log-aggregation-enable&lt;/name&gt;
      &lt;value&gt;true&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
      &lt;description&gt;Where to aggregate logs to.&lt;/description&gt;
      &lt;name&gt;yarn.nodemanager.remote-app-log-dir&lt;/name&gt;
      &lt;value&gt;/tmp/logs&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
      &lt;name&gt;yarn.log-aggregation.retain-seconds&lt;/name&gt;
      &lt;value&gt;259200&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
      &lt;name&gt;yarn.log-aggregation.retain-check-interval-seconds&lt;/name&gt;
      &lt;value&gt;3600&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>When I try to aggregate by:</p>
  
  <pre><code>yarn logs -applicationId &lt;ID&gt;
  </code></pre>
  
  <p>This error is being output:</p>
  
  <pre><code>Log aggregation has not completed or is not enabled.
  </code></pre>