Skip to content

Commit 60d70e4

Browse files
committed
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`.
1 parent d294228 commit 60d70e4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

hbase-assembly/src/main/assembly/hadoop-two-compat.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
They are needed to be included in lib/jdk11 to be added to classpath during
7373
Java 11 runtime hence excluding from main lib.
7474
-->
75-
<exclude>com.fasterxml.woodstox:woodstox-core</exclude>
7675
<exclude>com.sun.istack:istack-commons-runtime</exclude>
7776
<exclude>com.sun.xml.bind:jaxb-jxc</exclude>
7877
<exclude>com.sun.xml.bind:jaxb-xjc</exclude>
@@ -88,7 +87,6 @@
8887
<exclude>jakarta.xml.bind:jakarta.xml.bind-api</exclude>
8988
<exclude>jakarta.xml.soap:jakarta.xml.soap-api</exclude>
9089
<exclude>jakarta.xml.ws:jakarta.xml.ws-api</exclude>
91-
<exclude>org.codehaus.woodstox:stax2-api</exclude>
9290
<exclude>org.eclipse.persistence:*</exclude>
9391
<exclude>org.glassfish.external:management-api</exclude>
9492
<exclude>org.glassfish.gmbal:gmbal</exclude>
@@ -229,7 +227,6 @@
229227
They are needed to be included in lib/jdk11 to be added to classpath during
230228
Java 11 runtime
231229
-->
232-
<include>com.fasterxml.woodstox:woodstox-core</include>
233230
<include>com.sun.istack:istack-commons-runtime</include>
234231
<include>com.sun.xml.bind:jaxb-jxc</include>
235232
<include>com.sun.xml.bind:jaxb-xjc</include>
@@ -245,7 +242,6 @@
245242
<include>jakarta.xml.bind:jakarta.xml.bind-api</include>
246243
<include>jakarta.xml.soap:jakarta.xml.soap-api</include>
247244
<include>jakarta.xml.ws:jakarta.xml.ws-api</include>
248-
<include>org.codehaus.woodstox:stax2-api</include>
249245
<include>org.eclipse.persistence:*</include>
250246
<include>org.glassfish.external:management-api</include>
251247
<include>org.glassfish.gmbal:gmbal</include>

0 commit comments

Comments
 (0)