[
https://issues.apache.org/jira/browse/HBASE-22264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16835916#comment-16835916
]
Sean Busbey commented on HBASE-22264:
-------------------------------------
okay I ran into a problem with missing classes in JDK11. log attached in
https://issues.apache.org/jira/secure/attachment/12968228/run_ITD_with_REST_ClusterManager.log
passes fine when I run under jdk8. specifically I can run the cluster under
jdk11 and run the IntegrationTestDriver under jdk8 and have it pass. I don't
think the jdk used by the cluster matters.
I think it's because of this bit here:
{code}
diff --git a/hbase-assembly/src/main/assembly/hadoop-two-compat.xml
b/hbase-assembly/src/main/assembly/hadoop-two-compat.xml
index
05e2fc9565266e4b8f08167e8d58a026d1cbb77e..27492a7133b96f6b65e55ba4ba307cb6dc132005
100644
--- a/hbase-assembly/src/main/assembly/hadoop-two-compat.xml
+++ b/hbase-assembly/src/main/assembly/hadoop-two-compat.xml
@@ -68,6 +68,7 @@
<excludes>
<!-- Exclude J2EE libraries that get pulled in when building on
JDK11 -->
<exclude>com.sun.xml.ws:jaxws-ri</exclude>
{code}
the CNFE we get is from some part of the jaxws reference implementation that's
present in JDK8 and not around any more in JDK11.
> Separate out jars related to JDK 11 into a folder in /lib
> ---------------------------------------------------------
>
> Key: HBASE-22264
> URL: https://issues.apache.org/jira/browse/HBASE-22264
> Project: HBase
> Issue Type: Task
> Components: java
> Reporter: Sakthi
> Assignee: Sakthi
> Priority: Minor
> Labels: jdk11
> Attachments: hbase-22264.master.001.patch,
> hbase-22264.master.002.patch, hbase-22264.master.003.patch,
> hbase-22264.master.004.patch, hbase-22264.master.005.patch,
> hbase-22264_jdks.txt, run_ITD_with_REST_ClusterManager.log
>
>
> 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:
> {code:java}
> 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)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)