Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9813

RM does not start on JDK11 when UIv2 is enabled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.3.0, 3.2.1, 3.1.4
    • Component/s: resourcemanager, yarn
    • Labels:
      None

      Description

      Starting a ResourceManager on JDK11 with UIv2 is enabled, RM startup fails with the following message:

      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)
      
      

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

        Attachments

        1. YARN-9813.003.patch
          1 kB
          Eric Yang
        2. YARN-9813.002.patch
          2 kB
          Adam Antal
        3. YARN-9813.001.patch
          1 kB
          Adam Antal

          Issue Links

            Activity

              People

              • Assignee:
                adam.antal Adam Antal
                Reporter:
                adam.antal Adam Antal
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: