YARN-5380. NMTimelinePublisher should use getMemorySize instead of getMemory. Contributed by Vrushali C

This commit is contained in:
Naganarasimha 2016-07-15 14:34:48 +05:30
parent 1381483233
commit b5ee7dbd8d
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ public class NMTimelinePublisher extends CompositeService {
Map<String, Object> entityInfo = new HashMap<String, Object>(); Map<String, Object> entityInfo = new HashMap<String, Object>();
entityInfo.put(ContainerMetricsConstants.ALLOCATED_MEMORY_ENTITY_INFO, entityInfo.put(ContainerMetricsConstants.ALLOCATED_MEMORY_ENTITY_INFO,
resource.getMemory()); resource.getMemorySize());
entityInfo.put(ContainerMetricsConstants.ALLOCATED_VCORE_ENTITY_INFO, entityInfo.put(ContainerMetricsConstants.ALLOCATED_VCORE_ENTITY_INFO,
resource.getVirtualCores()); resource.getVirtualCores());
entityInfo.put(ContainerMetricsConstants.ALLOCATED_HOST_ENTITY_INFO, entityInfo.put(ContainerMetricsConstants.ALLOCATED_HOST_ENTITY_INFO,