YARN-3832. Resource Localization fails on a cluster due to existing cache directories. Contributed by Brahma Reddy Battula

(cherry picked from commit 8d58512d6e)

(cherry picked from commit 15b1800b12)
(cherry picked from commit 38400507e3352d83c2a1f364de137366249b7983)
This commit is contained in:
Jason Lowe 2015-06-24 16:37:39 +00:00 committed by Vinod Kumar Vavilapalli
parent 4f53c98ca4
commit f21fb808f1
2 changed files with 4 additions and 1 deletions

View File

@ -156,6 +156,9 @@ Release 2.6.1 - UNRELEASED
YARN-3585. NodeManager cannot exit on SHUTDOWN event triggered and NM
recovery is enabled (Rohith Sharmaks via jlowe)
YARN-3832. Resource Localization fails on a cluster due to existing cache
directories (Brahma Reddy Battula via jlowe)
Release 2.6.0 - 2014-11-18
INCOMPATIBLE CHANGES

View File

@ -1271,7 +1271,7 @@ public class ResourceLocalizationService extends CompositeService
}
private void cleanUpLocalDirs(FileContext lfs, DeletionService del) {
for (String localDir : dirsHandler.getLocalDirs()) {
for (String localDir : dirsHandler.getLocalDirsForCleanup()) {
cleanUpLocalDir(lfs, del, localDir);
}
}