You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Adam Antal (Jira)" <ji...@apache.org> on 2019/09/06 07:31:00 UTC

[jira] [Created] (YARN-9813) RM does not start on JDK11 when UIv2 is enabled

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: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org