<?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 yarn + usercache + size of local folder increasing in spite yarn.nodemanager.localizer.cache.target-size-mb configured in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/yarn-usercache-size-of-local-folder-increasing-in-spite-yarn/m-p/241018#M202822</link>
    <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;we noticed about the following problem:&lt;/P&gt;&lt;P&gt;under the folder ( DATANODE machine )&lt;/P&gt;&lt;PRE&gt;/var/hadoop/yarn/local/usercache&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;size is 140G &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in spite we set the following configuration that should avoid this case&lt;/P&gt;&lt;PRE&gt;yarn.nodemanager.localizer.cache.target-size-mb = 10240
yarn.nodemanager.localizer.cache.cleanup.interval-ms = 300000&lt;/PRE&gt;&lt;P&gt;this configuration from my understanding should delete the the folder/files in case size is more then 10G&lt;/P&gt;&lt;P&gt;so how it can be current size is 140G?&lt;/P&gt;&lt;P&gt;reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/201820/yarn-usercache-folder-became-with-huge-size.html" target="_blank"&gt;https://community.hortonworks.com/questions/201820/yarn-usercache-folder-became-with-huge-size.html&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;yarn.nodemanager.localizer.cache.target-size-mb&lt;/STRONG&gt;: This decides the maximum disk space to be used for localizing resources. (At present there is no individual limit for PRIVATE / APPLICATION / PUBLIC cache. &lt;A href="https://issues.apache.org/jira/browse/YARN-882"&gt;YARN-882&lt;/A&gt;). Once the total disk size of the cache exceeds this then Deletion service will try to remove files which are not used by any running containers. At present there is no limit (quota) for user cache / public cache / private cache. This limit is applicable to all the disks as a total and is not based on per disk basis.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;yarn.nodemanager.localizer.cache.cleanup.interval-ms&lt;/STRONG&gt;: After this interval resource localization service will try to delete the unused resources if total cache size exceeds the configured max-size. Unused resources are those resources which are not referenced by any running container. Every time container requests a resource, container is added into the resources’ reference list. It will remain there until container finishes avoiding accidental deletion of this resource. As a part of container resource cleanup (when container finishes) container will be removed from resources’ reference list. That is why when reference count drops to zero it is an ideal candidate for deletion. The resources will be deleted on LRU basis until current cache size drops below target size.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Tue, 25 Dec 2018 19:09:16 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2018-12-25T19:09:16Z</dc:date>
    <item>
      <title>yarn + usercache + size of local folder increasing in spite yarn.nodemanager.localizer.cache.target-size-mb configured</title>
      <link>https://community.cloudera.com/t5/Support-Questions/yarn-usercache-size-of-local-folder-increasing-in-spite-yarn/m-p/241018#M202822</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;we noticed about the following problem:&lt;/P&gt;&lt;P&gt;under the folder ( DATANODE machine )&lt;/P&gt;&lt;PRE&gt;/var/hadoop/yarn/local/usercache&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;size is 140G &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in spite we set the following configuration that should avoid this case&lt;/P&gt;&lt;PRE&gt;yarn.nodemanager.localizer.cache.target-size-mb = 10240
yarn.nodemanager.localizer.cache.cleanup.interval-ms = 300000&lt;/PRE&gt;&lt;P&gt;this configuration from my understanding should delete the the folder/files in case size is more then 10G&lt;/P&gt;&lt;P&gt;so how it can be current size is 140G?&lt;/P&gt;&lt;P&gt;reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/201820/yarn-usercache-folder-became-with-huge-size.html" target="_blank"&gt;https://community.hortonworks.com/questions/201820/yarn-usercache-folder-became-with-huge-size.html&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;yarn.nodemanager.localizer.cache.target-size-mb&lt;/STRONG&gt;: This decides the maximum disk space to be used for localizing resources. (At present there is no individual limit for PRIVATE / APPLICATION / PUBLIC cache. &lt;A href="https://issues.apache.org/jira/browse/YARN-882"&gt;YARN-882&lt;/A&gt;). Once the total disk size of the cache exceeds this then Deletion service will try to remove files which are not used by any running containers. At present there is no limit (quota) for user cache / public cache / private cache. This limit is applicable to all the disks as a total and is not based on per disk basis.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;yarn.nodemanager.localizer.cache.cleanup.interval-ms&lt;/STRONG&gt;: After this interval resource localization service will try to delete the unused resources if total cache size exceeds the configured max-size. Unused resources are those resources which are not referenced by any running container. Every time container requests a resource, container is added into the resources’ reference list. It will remain there until container finishes avoiding accidental deletion of this resource. As a part of container resource cleanup (when container finishes) container will be removed from resources’ reference list. That is why when reference count drops to zero it is an ideal candidate for deletion. The resources will be deleted on LRU basis until current cache size drops below target size.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 25 Dec 2018 19:09:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/yarn-usercache-size-of-local-folder-increasing-in-spite-yarn/m-p/241018#M202822</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-12-25T19:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: yarn + usercache + size of local folder increasing in spite yarn.nodemanager.localizer.cache.target-size-mb configured</title>
      <link>https://community.cloudera.com/t5/Support-Questions/yarn-usercache-size-of-local-folder-increasing-in-spite-yarn/m-p/241019#M202823</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/26229/uribarih.html"&gt;Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As for automatic clean up not getting triggered, well it may be due to (or at-least related to) this unresolved bug reported on Yarn.&lt;BR /&gt;&lt;A href="https://issues.apache.org/jira/browse/YARN-4540" target="_blank"&gt;https://issues.apache.org/jira/browse/YARN-4540&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 14:02:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/yarn-usercache-size-of-local-folder-increasing-in-spite-yarn/m-p/241019#M202823</guid>
      <dc:creator>jagadeesan</dc:creator>
      <dc:date>2018-12-26T14:02:39Z</dc:date>
    </item>
  </channel>
</rss>

