YARN-8184. Too many metrics if containerLocalizer/ResourceLocalizationService uses ReadWriteDiskValidator. Contributed by Yufei Gu
This commit is contained in:
parent
ae055622ed
commit
1cdce86d33
|
@ -132,10 +132,7 @@ public class ContainerLocalizer {
|
|||
this.recordFactory = recordFactory;
|
||||
this.conf = new YarnConfiguration();
|
||||
this.diskValidator = DiskValidatorFactory.getInstance(
|
||||
conf.get(YarnConfiguration.DISK_VALIDATOR,
|
||||
YarnConfiguration.DEFAULT_DISK_VALIDATOR));
|
||||
LOG.info("Disk Validator: " + YarnConfiguration.DISK_VALIDATOR +
|
||||
" is loaded.");
|
||||
YarnConfiguration.DEFAULT_DISK_VALIDATOR);
|
||||
this.appCacheDirContextName = String.format(APPCACHE_CTXT_FMT, appId);
|
||||
this.pendingResources = new HashMap<LocalResource,Future<Path>>();
|
||||
}
|
||||
|
|
|
@ -264,10 +264,7 @@ public class ResourceLocalizationService extends CompositeService
|
|||
}
|
||||
|
||||
diskValidator = DiskValidatorFactory.getInstance(
|
||||
conf.get(YarnConfiguration.DISK_VALIDATOR,
|
||||
YarnConfiguration.DEFAULT_DISK_VALIDATOR));
|
||||
LOG.info("Disk Validator: " + YarnConfiguration.DISK_VALIDATOR +
|
||||
" is loaded.");
|
||||
YarnConfiguration.DEFAULT_DISK_VALIDATOR);
|
||||
cacheTargetSize =
|
||||
conf.getLong(YarnConfiguration.NM_LOCALIZER_CACHE_TARGET_SIZE_MB, YarnConfiguration.DEFAULT_NM_LOCALIZER_CACHE_TARGET_SIZE_MB) << 20;
|
||||
cacheCleanupPeriod =
|
||||
|
|
Loading…
Reference in New Issue