YARN-4760. proxy redirect to history server uses wrong URL. Contributed by Eric Badger

(cherry picked from commit 4163e36c2b)
This commit is contained in:
Jason Lowe 2016-03-07 15:59:45 +00:00
parent 274e182860
commit 63b2019ab4
3 changed files with 5 additions and 2 deletions

View File

@ -104,6 +104,9 @@ Release 2.7.3 - UNRELEASED
YARN-4723. NodesListManager$UnknownNodeId ClassCastException (Kuhu Shukla
via jlowe)
YARN-4760. proxy redirect to history server uses wrong URL (Eric Badger
via jlowe)
Release 2.7.2 - 2016-01-25
INCOMPATIBLE CHANGES

View File

@ -112,7 +112,7 @@ public class WebAppProxyServlet extends HttpServlet {
WebAppUtils.getResolvedRMWebAppURLWithScheme(conf), "cluster", "app");
this.ahsAppPageUrlBase = StringHelper.pjoin(
WebAppUtils.getHttpSchemePrefix(conf) + WebAppUtils
.getAHSWebAppURLWithoutScheme(conf), "applicationhistory", "apps");
.getAHSWebAppURLWithoutScheme(conf), "applicationhistory", "app");
}
/**

View File

@ -249,7 +249,7 @@ public class TestWebAppProxyServlet {
}
String appAddressInAhs = WebAppUtils.getHttpSchemePrefix(configuration) +
WebAppUtils.getAHSWebAppURLWithoutScheme(configuration) +
"/applicationhistory" + "/apps/" + app.toString();
"/applicationhistory" + "/app/" + app.toString();
assertTrue("Webapp proxy servlet should have redirected to AHS",
proxyConn.getURL().toString().equals(appAddressInAhs));
}