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 @@ private void publishContainerCreatedEvent(ContainerEvent event) {
Map<String, Object> entityInfo = new HashMap<String, Object>();
entityInfo.put(ContainerMetricsConstants.ALLOCATED_MEMORY_ENTITY_INFO,
resource.getMemory());
resource.getMemorySize());
entityInfo.put(ContainerMetricsConstants.ALLOCATED_VCORE_ENTITY_INFO,
resource.getVirtualCores());
entityInfo.put(ContainerMetricsConstants.ALLOCATED_HOST_ENTITY_INFO,