merge MAPREDUCE-4005 from trunk

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1301693 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Siddharth Seth 2012-03-16 18:48:57 +00:00
parent debf136f0d
commit 1514466b7a
3 changed files with 7 additions and 1 deletions

View File

@ -237,6 +237,9 @@ Release 0.23.2 - UNRELEASED
MAPREDUCE-3982. Fixed FileOutputCommitter to not err out for an 'empty-job'
whose tasks don't write any outputs. (Robert Joseph Evans via vinodkv)
MAPREDUCE-4005. Fixes broken AM container logs URL on ResourceManager
Application Info page. (Jason Lowe via sseth)
Release 0.23.1 - 2012-02-17
NEW FEATURES

View File

@ -118,7 +118,8 @@ public AppInfo(RMApp app, Boolean hasAccess) {
this.amContainerLogsExist = true;
String url = join("http://", masterContainer.getNodeHttpAddress(),
"/node", "/containerlogs/",
ConverterUtils.toString(masterContainer.getId()));
ConverterUtils.toString(masterContainer.getId()),
"/", app.getUser());
this.amContainerLogs = url;
this.amHostHttpAddress = masterContainer.getNodeHttpAddress();
}

View File

@ -751,6 +751,8 @@ public void verifyAppInfoGeneric(RMApp app, String id, String user,
amHostHttpAddress);
assertTrue("amContainerLogs doesn't match",
amContainerLogs.startsWith("http://"));
assertTrue("amContainerLogs doesn't contain user info",
amContainerLogs.endsWith("/" + app.getUser()));
}
}