YARN-9813. RM does not start on JDK11 when UIv2 is enabled. (Adam Antal/Eric Yang via wangda)
Change-Id: I18b8edc930b2efa0652f59c246931ad0d46827f3
(cherry picked from commit 34b82e6da0
)
This commit is contained in:
parent
9ee257e353
commit
0e77347972
|
@ -1202,8 +1202,7 @@ public class ResourceManager extends CompositeService
|
||||||
|
|
||||||
if (null == onDiskPath) {
|
if (null == onDiskPath) {
|
||||||
String war = "hadoop-yarn-ui-" + VersionInfo.getVersion() + ".war";
|
String war = "hadoop-yarn-ui-" + VersionInfo.getVersion() + ".war";
|
||||||
URLClassLoader cl = (URLClassLoader) ClassLoader.getSystemClassLoader();
|
URL url = getClass().getClassLoader().getResource(war);
|
||||||
URL url = cl.findResource(war);
|
|
||||||
|
|
||||||
if (null == url) {
|
if (null == url) {
|
||||||
onDiskPath = getWebAppsPath("ui2");
|
onDiskPath = getWebAppsPath("ui2");
|
||||||
|
|
Loading…
Reference in New Issue