[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 e162ef84dc
commit 1b5de609ec
1 changed files with 3 additions and 1 deletions

View File

@ -1083,8 +1083,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();