Adam Antal created YARN-9813:
--------------------------------

             Summary: RM does not start on JDK11 when UIv2 is enabled
                 Key: YARN-9813
                 URL: https://issues.apache.org/jira/browse/YARN-9813
             Project: Hadoop YARN
          Issue Type: Bug
          Components: resourcemanager, yarn
    Affects Versions: 3.1.2
            Reporter: Adam Antal
            Assignee: Adam Antal


Starting a ResourceManager on JDK11 with UIv2 is enabled, RM startup fails with 
the following message:
{noformat}
Error starting ResourceManager
java.lang.ClassCastException: class 
jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class 
java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and 
java.net.URLClassLoader are in module java.base of loader 'bootstrap')
        at 
org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startWepApp(ResourceManager.java:1190)
        at 
org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:1333)
        at 
org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
        at 
org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1531)

{noformat}

It is a known issue that the systemClassLoader is not URLClassLoader anymore 
from JDK9 (see related UT failure: YARN-9512). 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to