<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: how to turn off YARN Nodemanager container logs auto delete once finished in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-turn-off-YARN-Nodemanager-container-logs-auto-delete/m-p/297557#M218765</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/75200"&gt;@Mondi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for raising your question about why application logs being deleted from the nodes after the applications finished running and why is it happening, how to keep them in place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When log aggregation is enabled with the 'yarn.log-aggregation-enable = true' [1] you will observe the behaviour described: after the logs are aggregated to HDFS, the logs are immediately deleted from the local file system. Log aggregation does not start until the application is finished. If you need to keep the logs and some other temporary files on the local node for troubleshooting and you have log aggregation turned on then you can use yarn.nodemanager.delete.debug-delay-sec . This is set to 0 seconds by default causing the immediate delete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should you disable log aggregation, non aggregated logs are kept for yarn.nodemanager.log.retain-seconds = 10800 seconds (3*3600 seconds or 3 hours). After that the NodeManager will delete the log files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if your enquiries been addressed!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you:&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://hadoop.apache.org/docs/r2.7.0/hadoop-yarn/hadoop-yarn-common/yarn-default.xml" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.0/hadoop-yarn/hadoop-yarn-common/yarn-default.xml&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2020 08:07:50 GMT</pubDate>
    <dc:creator>Bender</dc:creator>
    <dc:date>2020-06-08T08:07:50Z</dc:date>
    <item>
      <title>how to turn off YARN Nodemanager container logs auto delete once finished</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-turn-off-YARN-Nodemanager-container-logs-auto-delete/m-p/297551#M218761</link>
      <description>&lt;P&gt;hi, how can I stop my container logs on the nodemanagers deleted once the job finished? they seems be deleted once the job are finished, they exist it here /data/yarn/container-logs when running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-06-08 at 2.27.09 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27917iD454B68E355C8835/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-06-08 at 2.27.09 PM.png" alt="Screen Shot 2020-06-08 at 2.27.09 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 06:28:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-turn-off-YARN-Nodemanager-container-logs-auto-delete/m-p/297551#M218761</guid>
      <dc:creator>Mondi</dc:creator>
      <dc:date>2020-06-08T06:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to turn off YARN Nodemanager container logs auto delete once finished</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-turn-off-YARN-Nodemanager-container-logs-auto-delete/m-p/297557#M218765</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/75200"&gt;@Mondi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for raising your question about why application logs being deleted from the nodes after the applications finished running and why is it happening, how to keep them in place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When log aggregation is enabled with the 'yarn.log-aggregation-enable = true' [1] you will observe the behaviour described: after the logs are aggregated to HDFS, the logs are immediately deleted from the local file system. Log aggregation does not start until the application is finished. If you need to keep the logs and some other temporary files on the local node for troubleshooting and you have log aggregation turned on then you can use yarn.nodemanager.delete.debug-delay-sec . This is set to 0 seconds by default causing the immediate delete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should you disable log aggregation, non aggregated logs are kept for yarn.nodemanager.log.retain-seconds = 10800 seconds (3*3600 seconds or 3 hours). After that the NodeManager will delete the log files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if your enquiries been addressed!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you:&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://hadoop.apache.org/docs/r2.7.0/hadoop-yarn/hadoop-yarn-common/yarn-default.xml" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.0/hadoop-yarn/hadoop-yarn-common/yarn-default.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 08:07:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-turn-off-YARN-Nodemanager-container-logs-auto-delete/m-p/297557#M218765</guid>
      <dc:creator>Bender</dc:creator>
      <dc:date>2020-06-08T08:07:50Z</dc:date>
    </item>
  </channel>
</rss>

