[YARN-10626] Log resource allocation in NM log at container start time. Contributed by Eric Badger

(cherry picked from commit e6f5dbbe7f)
This commit is contained in:
Jim Brennan 2021-02-16 17:19:15 +00:00
parent d0562d6cd0
commit 7363e6eee1
1 changed files with 3 additions and 1 deletions

View File

@ -1078,8 +1078,10 @@ public class ContainerManagerImpl extends CompositeService implements
ContainerId containerId = containerTokenIdentifier.getContainerID();
String containerIdStr = containerId.toString();
String user = containerTokenIdentifier.getApplicationSubmitter();
Resource containerResource = containerTokenIdentifier.getResource();
LOG.info("Start request for " + containerIdStr + " by user " + user);
LOG.info("Start request for " + containerIdStr + " by user " + user +
" with resource " + containerResource);
ContainerLaunchContext launchContext = request.getContainerLaunchContext();