YARN-1975. Fix yarn application CLI to print the scheme of the tracking url of failed/killed applications. Contributed by Junping Du

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1593874 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jian He 2014-05-12 00:43:35 +00:00
parent ca95af7d23
commit 41344a4a69
3 changed files with 5 additions and 2 deletions

View File

@ -102,6 +102,9 @@ Release 2.5.0 - UNRELEASED
YARN-2011. Fix typo and warning in TestLeafQueue (Chen He via junping_du) YARN-2011. Fix typo and warning in TestLeafQueue (Chen He via junping_du)
YARN-1975. Fix yarn application CLI to print the scheme of the tracking url
of failed/killed applications. (Junping Du via jianhe)
Release 2.4.1 - UNRELEASED Release 2.4.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -526,7 +526,7 @@ private String generateProxyUriWithScheme(
private void setTrackingUrlToRMAppPage() { private void setTrackingUrlToRMAppPage() {
originalTrackingUrl = pjoin( originalTrackingUrl = pjoin(
WebAppUtils.getResolvedRMWebAppURLWithoutScheme(conf), WebAppUtils.getResolvedRMWebAppURLWithScheme(conf),
"cluster", "app", getAppAttemptId().getApplicationId()); "cluster", "app", getAppAttemptId().getApplicationId());
proxiedTrackingUrl = originalTrackingUrl; proxiedTrackingUrl = originalTrackingUrl;
} }

View File

@ -113,7 +113,7 @@ public class TestRMAppAttemptTransitions {
private static final String EMPTY_DIAGNOSTICS = ""; private static final String EMPTY_DIAGNOSTICS = "";
private static final String RM_WEBAPP_ADDR = private static final String RM_WEBAPP_ADDR =
WebAppUtils.getResolvedRMWebAppURLWithoutScheme(new Configuration()); WebAppUtils.getResolvedRMWebAppURLWithScheme(new Configuration());
private boolean isSecurityEnabled; private boolean isSecurityEnabled;
private RMContext rmContext; private RMContext rmContext;