Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22972 [JDK11] Support JDK11 LTS in HBase
  3. HBASE-22264

Separate out jars related to JDK 11 into a folder in /lib

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.3.0
    • Component/s: java
    • Labels:

      Description

      UPDATE:

      Separate out the the jars related to JDK 11 and add control their addition to the classpath using an environment variable or auto-detection of the jdk version installed.

      OLD:

      This is in continuation with HBASE-22249. When compiled with jdk 8 and run on jdk 11, the master branch throws the following exception during an attempt to start the hbase rest server:

      Exception in thread "main" java.lang.NoClassDefFoundError: javax/annotation/Priority
      	at org.glassfish.jersey.model.internal.ComponentBag.modelFor(ComponentBag.java:483)
      	at org.glassfish.jersey.model.internal.ComponentBag.access$100(ComponentBag.java:89)
      	at org.glassfish.jersey.model.internal.ComponentBag$5.call(ComponentBag.java:408)
      	at org.glassfish.jersey.model.internal.ComponentBag$5.call(ComponentBag.java:398)
      	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      	at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
      	at org.glassfish.jersey.model.internal.ComponentBag.registerModel(ComponentBag.java:398)
      	at org.glassfish.jersey.model.internal.ComponentBag.register(ComponentBag.java:235)
      	at org.glassfish.jersey.model.internal.CommonConfig.register(CommonConfig.java:420)
      	at org.glassfish.jersey.server.ResourceConfig.register(ResourceConfig.java:425)
      	at org.apache.hadoop.hbase.rest.RESTServer.run(RESTServer.java:245)
      	at org.apache.hadoop.hbase.rest.RESTServer.main(RESTServer.java:421)
      

        Attachments

        1. run_ITD_with_REST_ClusterManager.log
          35 kB
          Sean Busbey
        2. hbase-22264.master.006.patch
          37 kB
          Sakthi
        3. hbase-22264.master.005.patch
          5 kB
          Sakthi
        4. hbase-22264.master.004.patch
          5 kB
          Sakthi
        5. hbase-22264.master.003.patch
          4 kB
          Sakthi
        6. hbase-22264.master.002.patch
          4 kB
          Sakthi
        7. hbase-22264.master.001.patch
          2 kB
          Sakthi
        8. hbase-22264_jdks.txt
          5 kB
          Sean Busbey

          Issue Links

            Activity

              People

              • Assignee:
                sakthi Sakthi
                Reporter:
                sakthi Sakthi
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: