Community Articles

Find and share helpful community-sourced technical articles.
Labels (2)

To clear local file cache and user cache for yarn, perform the following:

  1. Find out the cache location by checking the value of the yarn.nodemanager.local-dirs property :
  2. Remove filecache and usercache folder located inside the folders that is specified in yarn.nodemanager.local-dirs.
    [yarn@node2 ~]$ cd /hadoop/yarn/local/ 
    [yarn@node2 local]$ ls filecache  nmPrivate  spark_shuffle  usercache 
    [yarn@node2 local]$ rm -rf filecache/ usercache/
    If there are more than one folder, clean them one by one.
  3. Restart YARN service.
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.
Version history
Last update:
‎03-31-2017 09:25 PM
Updated by:
Top Kudoed Authors