YARN-4669. Fix logging statements in resource manager's Application class. Contributed by Sidharta Seethana.

(cherry picked from commit a4a30c789146c4e824fcc6ebcf10405711120eaa)
This commit is contained in:
Varun Vasudev 2016-02-04 13:48:22 +05:30
parent 6ee66be2fa
commit be04535f1a
2 changed files with 10 additions and 3 deletions

View File

@ -136,6 +136,9 @@ Release 2.9.0 - UNRELEASED
YARN-4594. container-executor fails to remove directory tree when chmod
required (Colin Patrick McCabe via jlowe)
YARN-4669. Fix logging statements in resource manager's Application class.
(Seethana Sidharta via vvasudev)
Release 2.8.0 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -324,9 +324,13 @@ public class Application {
Allocation allocation = resourceManager.getResourceScheduler().allocate(
applicationAttemptId, new ArrayList<ResourceRequest>(ask),
new ArrayList<ContainerId>(), null, null, null, null);
System.out.println("-=======" + applicationAttemptId);
System.out.println("----------" + resourceManager.getRMContext().getRMApps()
.get(applicationId).getRMAppAttempt(applicationAttemptId));
if (LOG.isInfoEnabled()) {
LOG.info("-=======" + applicationAttemptId + System.lineSeparator() +
"----------" + resourceManager.getRMContext().getRMApps()
.get(applicationId).getRMAppAttempt(applicationAttemptId));
}
List<Container> containers = allocation.getContainers();
// Clear state for next interaction with ResourceManager