<?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: Yarn container logs in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/282162#M209800</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28897"&gt;@gsthina&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate all your time &amp;amp; assistance this topic. Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Wert&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 04:14:52 GMT</pubDate>
    <dc:creator>wert_1311</dc:creator>
    <dc:date>2019-11-06T04:14:52Z</dc:date>
    <item>
      <title>Yarn container logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/281774#M209573</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running out of space on one of our DN, and found that Yarn container logs are consuming around 50GB, though there are 3 Spark jobs/applications running which can be seen under Yarn &amp;gt; Applications tab, but I see a lot of other application ids also listed, would like to know if these could be deleted to reclaim space (the ones which are not running)&lt;/P&gt;&lt;P&gt;Secondly, any precautions to be taken into consideration while deleting these container logs. Any guidance would be of great help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Wert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 17:16:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/281774#M209573</guid>
      <dc:creator>wert_1311</dc:creator>
      <dc:date>2019-10-31T17:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn container logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/281777#M209576</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think, deleting container logs may be a good option to save space. However, if you would like to grab the yarn logs for analysing the old jobs, then you may need those container logs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I think those analyses are required, when a job fails. So, if you think those jobs will not be dug again to gather any of the historic insights, then you may feel free to clear them.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 17:56:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/281777#M209576</guid>
      <dc:creator>gsthina</dc:creator>
      <dc:date>2019-10-31T17:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn container logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/281804#M209594</link>
      <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;Can you confirm what's the location of the log that is filled up? Can you go to CM to confirm if it is really the container log directory?</description>
      <pubDate>Thu, 31 Oct 2019 22:02:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/281804#M209594</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-10-31T22:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn container logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/281840#M209609</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28897"&gt;@gsthina&lt;/a&gt; Thanks for your reply, post clean-up container logs are at comfortable at 660M.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/10115"&gt;@EricL&lt;/a&gt; path for container logs are (/data/yarn/container-logs), since I have you guys with me on this I would also like to check something about yarn filecache.&lt;/P&gt;&lt;P&gt;I see it’s consuming around 9.3G of space any way we can have this reduced? via an automated way?&lt;/P&gt;&lt;P&gt;Following are the Yarn settings which I, think controls filecache…. However, you guys are the experts&lt;/P&gt;&lt;P&gt;yarn.nodemanager.localizer.cache.target-size-mb = 10GB&lt;/P&gt;&lt;P&gt;yarn.nodemanager.localizer.cache.cleanup.interval-ms = 10 Minutes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Spce Used:&lt;/P&gt;&lt;P&gt;du -shc /data/yarn/nm/usercache/MyApplication/*&lt;/P&gt;&lt;P&gt;981M&amp;nbsp;&amp;nbsp;&amp;nbsp; /data/yarn/nm/usercache/ MyApplication /appcache&lt;/P&gt;&lt;P&gt;9.3G&amp;nbsp;&amp;nbsp;&amp;nbsp; /data/yarn/nm/usercache/ MyApplication /filecache&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 07:56:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/281840#M209609</guid>
      <dc:creator>wert_1311</dc:creator>
      <dc:date>2019-11-01T07:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn container logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/281842#M209611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for asking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently &lt;EM&gt;yarn.nodemanager.localizer.cache.target-size-mb&lt;/EM&gt; and &lt;EM&gt;yarn.nodemanager.localizer.cache.cleanup.interval-ms&lt;/EM&gt; triggers deletion service for non-running containers. However, for containers that are running and spilling data to&amp;nbsp;&lt;EM&gt;{'yarn.nodemanager.local-dirs'}/usercache/&amp;lt;user&amp;gt;/appcache/&amp;lt;app_id&amp;gt;&lt;/EM&gt;, the&amp;nbsp;deletion service does not come into action, as a result, filesystem gets full, nodes are marked unhealthy and application gets stuck.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I suggest you refer to an internal community article [1] which speaks about something similar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that the upstream JIRA [YARN-4540] [2] has this documented and is yet to be unresolved.&amp;nbsp;The general recommendation is to just make that FS big and if it gets full, debug the job that writes too much data into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, It is ok about deleting the usercache dir.&amp;nbsp;Use the following steps to delete the&amp;nbsp;usercache:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Stop the YARN&amp;nbsp;service.&lt;/LI&gt;&lt;LI&gt;Log in to all nodes and delete the content of the&amp;nbsp;usercache&amp;nbsp;directories.&lt;BR /&gt;For example:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;for i in `cat list_of_nodes_in_cluster`; do ssh $i rm -rf /data?/yarn/nm/usercache/* ; done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Verify all&amp;nbsp;usercache&amp;nbsp;directories on all nodes are empty.&lt;/LI&gt;&lt;LI&gt;Start the YARN service.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please let us know if this is helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] &lt;A href="https://community.cloudera.com/t5/Support-Questions/yarn-usercache-folder-became-with-huge-size/td-p/178648" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/yarn-usercache-folder-became-with-huge-size/td-p/178648&lt;/A&gt;&lt;BR /&gt;[2] &lt;A href="https://issues.apache.org/jira/browse/YARN-4540" target="_blank" rel="noopener"&gt;https://issues.apache.org/jira/browse/YARN-4540&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 09:50:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/281842#M209611</guid>
      <dc:creator>gsthina</dc:creator>
      <dc:date>2019-11-01T09:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn container logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/282155#M209794</link>
      <description>&lt;P&gt;Hi Gst,&lt;/P&gt;&lt;P&gt;Appreciate&amp;nbsp; your assistance on this so far, regarding stopping Yarn Service in our cluster it would be difficult as we have Spark streaming jobs running, stopping those would require a lot of approvals etc, any other way to get the contents inside /data/yarn/nm/usercache/my.application/filecache/* deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Wert&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 01:15:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/282155#M209794</guid>
      <dc:creator>wert_1311</dc:creator>
      <dc:date>2019-11-06T01:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn container logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/282159#M209798</link>
      <description>Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;There is an option to just stop a single NodeManager (NM) and clean that&lt;BR /&gt;usercache there. So, there will not be any applications affected due to&lt;BR /&gt;this. However, it is worth keeping in mind, even if you stop a single&lt;BR /&gt;NodeManager, it has some effect on the currently running jobs. The jobs&lt;BR /&gt;running on that NM will be stopped and will be restarted on another NM. So,&lt;BR /&gt;jobs will run longer than expected because the containers have to start&lt;BR /&gt;again somewhere else.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Nov 2019 03:51:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/282159#M209798</guid>
      <dc:creator>gsthina</dc:creator>
      <dc:date>2019-11-06T03:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn container logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/282162#M209800</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28897"&gt;@gsthina&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate all your time &amp;amp; assistance this topic. Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Wert&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 04:14:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/282162#M209800</guid>
      <dc:creator>wert_1311</dc:creator>
      <dc:date>2019-11-06T04:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn container logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/282164#M209802</link>
      <description>Hi @wret_1311,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response and I appreciate for confirming the solution. I'm glad, it helped you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 06 Nov 2019 04:21:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-container-logs/m-p/282164#M209802</guid>
      <dc:creator>gsthina</dc:creator>
      <dc:date>2019-11-06T04:21:54Z</dc:date>
    </item>
  </channel>
</rss>

