Created 07-04-2018 09:06 AM
Please check the yarn configs
Ambari dasboard. --> YARN --> Configs --> Advanced --> Customer yarn-site> Add/find Property
And check for the following properties
yarn.nodemanager.localizer.cache.target-size-mb: 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.
yarn.nodemanager.localizer.cache.cleanup.interval-ms: 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.
.
For example please set the value to something like following:
yarn.nodemanager.localizer.cache.target-size-mb = 4GB. (or desired) yarn.nodemanager.localizer.cache.cleanup.interval-ms = 300000 (or desired)
Reference: https://hortonworks.com/blog/resource-localization-in-yarn-deep-dive/