From 60959df706eebdf479ee5054f9de516e6a70a3e0 Mon Sep 17 00:00:00 2001 From: Nick Dimiduk Date: Wed, 1 Apr 2020 13:38:55 -0700 Subject: [PATCH] HBASE-24084 Fix missing jdk8 dependencies in hbase-assembly/hadoop-two-compat After HBASE-23986, running on JDK8/Hadoop2 from the binary tarball results in ``` Exception in thread "main" java.lang.NoClassDefFoundError: com/ctc/wstx/io/InputBootstrapper at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149) at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:3062) Caused by: java.lang.ClassNotFoundException: com.ctc.wstx.io.InputBootstrapper at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 2 more ``` The missing class is from `com.fasterxml.woodstox:woodstox-core`. This and `org.codehaus.woodstox:stax2-api` are explicit dependencies of `org.apache.hadoop:hadoop-common:jar:2.10.0`. Thus, include them in the default jars provided under `lib`. Signed-off-by: stack --- .../src/main/assembly/hadoop-two-compat.xml | 134 +++++++++--------- 1 file changed, 66 insertions(+), 68 deletions(-) diff --git a/hbase-assembly/src/main/assembly/hadoop-two-compat.xml b/hbase-assembly/src/main/assembly/hadoop-two-compat.xml index 6a21b9208731..a769b65a64e1 100644 --- a/hbase-assembly/src/main/assembly/hadoop-two-compat.xml +++ b/hbase-assembly/src/main/assembly/hadoop-two-compat.xml @@ -67,51 +67,50 @@ com.sun.activation:javax.activation - - com.sun.xml.ws:* - jakarta.annotation:jakarta.annotation-api - org.glassfish.jaxb:* com.sun.istack:istack-commons-runtime - org.glassfish.gmbal:gmbal - org.glassfish.external:management-api - org.glassfish.pfl:* - org.jvnet.staxex:stax-ex - com.sun.xml.stream.buffer:streambuffer - org.jvnet.mimepull:mimepull + com.sun.xml.bind:jaxb-jxc + com.sun.xml.bind:jaxb-xjc com.sun.xml.fastinfoset:FastInfoset - org.glassfish.ha:ha-api com.sun.xml.messaging.saaj:saaj-impl - com.fasterxml.woodstox:woodstox-core - org.codehaus.woodstox:stax2-api + com.sun.xml.stream.buffer:streambuffer + com.sun.xml.ws:* jakarta.activation:jakarta.activation-api - com.sun.xml.bind:jaxb-xjc - com.sun.xml.bind:jaxb-jxc + jakarta.annotation:jakarta.annotation-api + jakarta.jws:jakarta.jws-api jakarta.mail:jakarta.mail-api jakarta.persistence:jakarta.persistence-api - org.eclipse.persistence:* - jakarta.xml.ws:jakarta.xml.ws-api jakarta.xml.bind:jakarta.xml.bind-api jakarta.xml.soap:jakarta.xml.soap-api - jakarta.jws:jakarta.jws-api - - org.jruby:jruby-complete - com.sun.jersey:* + jakarta.xml.ws:jakarta.xml.ws-api + org.eclipse.persistence:* + org.glassfish.external:management-api + org.glassfish.gmbal:gmbal + org.glassfish.ha:ha-api + org.glassfish.jaxb:* + org.glassfish.pfl:* + org.jvnet.mimepull:mimepull + org.jvnet.staxex:stax-ex + + com.github.stephenc.findbugs:findbugs-annotations com.sun.jersey.contribs:* + com.sun.jersey:* + commons-logging:commons-logging jline:jline - org.apache.hbase:hbase-shaded-client - org.apache.hbase:hbase-shaded-client-byo-hadoop - org.apache.hbase:hbase-shaded-mapreduce - com.github.stephenc.findbugs:findbugs-annotations - commons-logging:commons-logging - log4j:log4j - org.apache.htrace:htrace-core4 - org.apache.htrace:htrace-core - org.apache.yetus:audience-annotations - org.slf4j:slf4j-api - org.slf4j:slf4j-log4j12 + log4j:log4j + org.apache.hbase:hbase-shaded-client-byo-hadoop + org.apache.hbase:hbase-shaded-client + org.apache.hbase:hbase-shaded-mapreduce + org.apache.htrace:htrace-core4 + org.apache.htrace:htrace-core + org.apache.yetus:audience-annotations + org.jruby:jruby-complete + org.slf4j:slf4j-api + org.slf4j:slf4j-log4j12 @@ -218,40 +217,39 @@ jline:jline - - lib/jdk11 - true - - com.sun.activation:javax.activation - - com.sun.xml.ws:* - jakarta.annotation:jakarta.annotation-api - org.glassfish.jaxb:* - com.sun.istack:istack-commons-runtime - org.glassfish.gmbal:gmbal - org.glassfish.external:management-api - org.glassfish.pfl:* - org.jvnet.staxex:stax-ex - com.sun.xml.stream.buffer:streambuffer - org.jvnet.mimepull:mimepull - com.sun.xml.fastinfoset:FastInfoset - org.glassfish.ha:ha-api - com.sun.xml.messaging.saaj:saaj-impl - com.fasterxml.woodstox:woodstox-core - org.codehaus.woodstox:stax2-api - jakarta.activation:jakarta.activation-api - com.sun.xml.bind:jaxb-xjc - com.sun.xml.bind:jaxb-jxc - jakarta.mail:jakarta.mail-api - jakarta.persistence:jakarta.persistence-api - org.eclipse.persistence:* - jakarta.xml.ws:jakarta.xml.ws-api - jakarta.xml.bind:jakarta.xml.bind-api - jakarta.xml.soap:jakarta.xml.soap-api - jakarta.jws:jakarta.jws-api + + lib/jdk11 + true + + com.sun.activation:javax.activation + + com.sun.istack:istack-commons-runtime + com.sun.xml.bind:jaxb-jxc + com.sun.xml.bind:jaxb-xjc + com.sun.xml.fastinfoset:FastInfoset + com.sun.xml.messaging.saaj:saaj-impl + com.sun.xml.stream.buffer:streambuffer + com.sun.xml.ws:* + jakarta.activation:jakarta.activation-api + jakarta.annotation:jakarta.annotation-api + jakarta.jws:jakarta.jws-api + jakarta.mail:jakarta.mail-api + jakarta.persistence:jakarta.persistence-api + jakarta.xml.bind:jakarta.xml.bind-api + jakarta.xml.soap:jakarta.xml.soap-api + jakarta.xml.ws:jakarta.xml.ws-api + org.eclipse.persistence:* + org.glassfish.external:management-api + org.glassfish.gmbal:gmbal + org.glassfish.ha:ha-api + org.glassfish.jaxb:* + org.glassfish.pfl:* + org.jvnet.mimepull:mimepull + org.jvnet.staxex:stax-ex