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

View File

@ -168,7 +168,7 @@ private void publishContainerCreatedEvent(ContainerEvent event) {
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,