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

(cherry picked from commit 3fcc7a55b6)
This commit is contained in:
Jim Brennan 2021-02-16 16:45:35 +00:00
parent e45149bf70
commit 457c8404b9

View File

@ -1082,8 +1082,10 @@ protected void startContainerInternal(
ContainerId containerId = containerTokenIdentifier.getContainerID();
String containerIdStr = containerId.toString();
String user = containerTokenIdentifier.getApplicationSubmitter();
Resource containerResource = containerTokenIdentifier.getResource();
LOG.info("Start request for " + containerIdStr + " by user " + remoteUser);
LOG.info("Start request for " + containerIdStr + " by user " + remoteUser +
" with resource " + containerResource);
ContainerLaunchContext launchContext = request.getContainerLaunchContext();