<?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 + usercache + folder became with huge size in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/339820#M80246</link>
    <description>&lt;P&gt;What is this block-mgr files contains ?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 10:02:41 GMT</pubDate>
    <dc:creator>mjose</dc:creator>
    <dc:date>2022-03-28T10:02:41Z</dc:date>
    <item>
      <title>yarn + usercache + folder became with huge size</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/178648#M80242</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;we have hadoop cluster version - 2.6.0.3 with yarn version - 2.7.3&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;we see that /var in workers ( data node ) machine is full &lt;/P&gt;&lt;P&gt;and the root cause for this is that we see huge folders - lockmgr-b1ed0e9c-5700-4575-aa5e-182146f743d9&lt;/P&gt;&lt;P&gt;under /var/hadoop/yarn/local/usercache/hdfs/appcache/application_1530106922052_0041&lt;/P&gt;&lt;P&gt;please advice how to avoid this isshu , why folder are in that huge capasity ?&lt;/P&gt;&lt;PRE&gt;[root@worker01 application_1530106922052_0041]# pwd
/var/hadoop/yarn/local/usercache/hdfs/appcache/application_1530106922052_0041
[root@worker01 application_1530106922052_0041]# \ls -ltr
total 8
drwx--x---  2 yarn hadoop    6 Jul  3 06:19 filecache
drwxr-xr-x 66 yarn hadoop 4096 Jul  3 06:24 blockmgr-b1ed0e9c-5700-4575-aa5e-182146f743d9
drwxr-xr-x 65 yarn hadoop 4096 Jul  4 08:02 blockmgr-c6530cea-1e98-419b-8653-3e9b467ac029
[root@worker01 application_1530106922052_0041]# du -sh *
33G     blockmgr-b1ed0e9c-5700-4575-aa5e-182146f743d9
31G     blockmgr-c6530cea-1e98-419b-8653-3e9b467ac029&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jul 2018 16:01:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/178648#M80242</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-07-04T16:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: yarn + usercache + folder became with huge size</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/178649#M80243</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check the yarn configs &lt;/P&gt;&lt;PRE&gt;Ambari dasboard. --&amp;gt; YARN --&amp;gt; Configs --&amp;gt; Advanced --&amp;gt; Customer yarn-site&amp;gt; Add/find Property&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;And check for the following properties &lt;BR /&gt;&lt;BR /&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. YARN-882). 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;BR /&gt;&lt;STRONG&gt;&lt;BR /&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;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example&lt;/STRONG&gt; please set the value to something like following:&lt;/P&gt;&lt;PRE&gt;yarn.nodemanager.localizer.cache.target-size-mb = 4GB.  (or desired)
yarn.nodemanager.localizer.cache.cleanup.interval-ms = 300000  (or desired)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Reference:  &lt;/STRONG&gt;&lt;A href="https://hortonworks.com/blog/resource-localization-in-yarn-deep-dive/" target="_blank"&gt;https://hortonworks.com/blog/resource-localization-in-yarn-deep-dive/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 16:06:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/178649#M80243</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-07-04T16:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: yarn + usercache + folder became with huge size</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/178650#M80244</link>
      <description>&lt;P&gt;@Jay  I not have the variables in YARN - &lt;STRONG&gt;yarn.nodemanager.localizer.cache.target-size-mb  , &lt;/STRONG&gt;&lt;STRONG&gt;yarn.nodemanager.localizer.cache.cleanup.interval-ms: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;so please advice how to add them ? and what is the values that I need to set each of them ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;note -  /var is 100G on each worker machine &lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 16:11:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/178650#M80244</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-07-04T16:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: yarn + usercache + folder became with huge size</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/178651#M80245</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can add those properties from ambari ui something like following:&lt;/P&gt;&lt;PRE&gt;Ambari dasboard.--&amp;gt; YARN --&amp;gt;Configs--&amp;gt;Advanced--&amp;gt;Customer yarn-site --&amp;gt; Click on "Add Property" &lt;/PRE&gt;&lt;P&gt;Then add the following two properties like:  (here 10240 value is in MB means around 10 GB)   or  for 5 MB  it can be set to 5120&lt;/P&gt;&lt;PRE&gt;yarn.nodemanager.localizer.cache.target-size-mb = 10240
yarn.nodemanager.localizer.cache.cleanup.interval-ms = 300000&amp;lt;br&amp;gt;&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 16:25:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/178651#M80245</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-07-04T16:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: yarn + usercache + folder became with huge size</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/339820#M80246</link>
      <description>&lt;P&gt;What is this block-mgr files contains ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 10:02:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/339820#M80246</guid>
      <dc:creator>mjose</dc:creator>
      <dc:date>2022-03-28T10:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: yarn + usercache + folder became with huge size</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/339821#M80247</link>
      <description>&lt;P&gt;What is stored inside this blockmgr-* files ? It has any relation to the input files spark reading ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 10:15:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/yarn-usercache-folder-became-with-huge-size/m-p/339821#M80247</guid>
      <dc:creator>mjose</dc:creator>
      <dc:date>2022-03-28T10:15:55Z</dc:date>
    </item>
  </channel>
</rss>

