YARN-4760. proxy redirect to history server uses wrong URL. Contributed by Eric Badger
(cherry picked from commit 4163e36c2b
)
This commit is contained in:
parent
274e182860
commit
63b2019ab4
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue