Skip to content

Commit

Permalink
HBASE-24084 Fix missing jdk8 dependencies in hbase-assembly/hadoop-tw…
Browse files Browse the repository at this point in the history
…o-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`.
  • Loading branch information
ndimiduk committed Apr 1, 2020
1 parent d294228 commit 60d70e4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hbase-assembly/src/main/assembly/hadoop-two-compat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
They are needed to be included in lib/jdk11 to be added to classpath during
Java 11 runtime hence excluding from main lib.
-->
<exclude>com.fasterxml.woodstox:woodstox-core</exclude>
<exclude>com.sun.istack:istack-commons-runtime</exclude>
<exclude>com.sun.xml.bind:jaxb-jxc</exclude>
<exclude>com.sun.xml.bind:jaxb-xjc</exclude>
Expand All @@ -88,7 +87,6 @@
<exclude>jakarta.xml.bind:jakarta.xml.bind-api</exclude>
<exclude>jakarta.xml.soap:jakarta.xml.soap-api</exclude>
<exclude>jakarta.xml.ws:jakarta.xml.ws-api</exclude>
<exclude>org.codehaus.woodstox:stax2-api</exclude>
<exclude>org.eclipse.persistence:*</exclude>
<exclude>org.glassfish.external:management-api</exclude>
<exclude>org.glassfish.gmbal:gmbal</exclude>
Expand Down Expand Up @@ -229,7 +227,6 @@
They are needed to be included in lib/jdk11 to be added to classpath during
Java 11 runtime
-->
<include>com.fasterxml.woodstox:woodstox-core</include>
<include>com.sun.istack:istack-commons-runtime</include>
<include>com.sun.xml.bind:jaxb-jxc</include>
<include>com.sun.xml.bind:jaxb-xjc</include>
Expand All @@ -245,7 +242,6 @@
<include>jakarta.xml.bind:jakarta.xml.bind-api</include>
<include>jakarta.xml.soap:jakarta.xml.soap-api</include>
<include>jakarta.xml.ws:jakarta.xml.ws-api</include>
<include>org.codehaus.woodstox:stax2-api</include>
<include>org.eclipse.persistence:*</include>
<include>org.glassfish.external:management-api</include>
<include>org.glassfish.gmbal:gmbal</include>
Expand Down

0 comments on commit 60d70e4

Please sign in to comment.