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

This commit is contained in:
Jim Brennan 2021-02-16 16:45:35 +00:00
parent 2b3c5b1733
commit 3fcc7a55b6

View File

@ -1082,8 +1082,10 @@ protected void startContainerInternal(
ContainerId containerId = containerTokenIdentifier.getContainerID(); ContainerId containerId = containerTokenIdentifier.getContainerID();
String containerIdStr = containerId.toString(); String containerIdStr = containerId.toString();
String user = containerTokenIdentifier.getApplicationSubmitter(); 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(); ContainerLaunchContext launchContext = request.getContainerLaunchContext();