From 8f292a8d583f1d6f77f3dc53207af67da0c761c3 Mon Sep 17 00:00:00 2001 From: Guanghao Zhang Date: Mon, 20 Jan 2020 13:22:04 +0800 Subject: [PATCH] HBASE-23156 start-hbase.sh failed with ClassNotFoundException when build with hadoop3 (#1067) Signed-off-by: Duo Zhang --- .../src/main/assembly/hadoop-three-compat.xml | 258 ++++++++++++++++++ pom.xml | 2 +- 2 files changed, 259 insertions(+), 1 deletion(-) create mode 100644 hbase-assembly/src/main/assembly/hadoop-three-compat.xml diff --git a/hbase-assembly/src/main/assembly/hadoop-three-compat.xml b/hbase-assembly/src/main/assembly/hadoop-three-compat.xml new file mode 100644 index 00000000000..310d06c4a3e --- /dev/null +++ b/hbase-assembly/src/main/assembly/hadoop-three-compat.xml @@ -0,0 +1,258 @@ + + + + + + bin + + tar.gz + + + src/main/assembly/components.xml + + + + true + + + org.apache.hbase:hbase-annotations + org.apache.hbase:hbase-backup + org.apache.hbase:hbase-client + org.apache.hbase:hbase-common + org.apache.hbase:hbase-endpoint + org.apache.hbase:hbase-examples + org.apache.hbase:hbase-external-blockcache + org.apache.hbase:hbase-hadoop-compat + org.apache.hbase:hbase-hadoop2-compat + org.apache.hbase:hbase-http + org.apache.hbase:hbase-it + org.apache.hbase:hbase-mapreduce + org.apache.hbase:hbase-metrics + org.apache.hbase:hbase-metrics-api + org.apache.hbase:hbase-procedure + org.apache.hbase:hbase-protocol + org.apache.hbase:hbase-protocol-shaded + org.apache.hbase:hbase-replication + org.apache.hbase:hbase-rest + org.apache.hbase:hbase-rsgroup + org.apache.hbase:hbase-server + org.apache.hbase:hbase-shell + org.apache.hbase:hbase-testing-util + org.apache.hbase:hbase-thrift + org.apache.hbase:hbase-zookeeper + + + + lib + false + + + + + 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 + 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 + + org.jruby:jruby-complete + com.sun.jersey:* + com.sun.jersey.contribs:* + 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 + + + + + + + + true + + org.apache.hbase:hbase-shaded-client + org.apache.hbase:hbase-shaded-mapreduce + org.apache.hbase:hbase-shaded-client-byo-hadoop + + + lib/shaded-clients + false + + + + org.apache.hbase:hbase-shaded-client + org.apache.hbase:hbase-shaded-mapreduce + org.apache.hbase:hbase-shaded-client-byo-hadoop + + + + + + + + + + ${project.build.directory}/maven-shared-archive-resources/META-INF/LICENSE + . + LICENSE.txt + unix + + + ${project.build.directory}/NOTICE.aggregate + . + NOTICE.txt + unix + + + ${basedir}/src/main/resources/META-INF/LEGAL + . + LEGAL + unix + + + + + + + lib/ruby + + org.jruby:jruby-complete + + + + + lib/client-facing-thirdparty + true + + + 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 + + + + lib/zkcli + + 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 + + + + + diff --git a/pom.xml b/pom.xml index 7c4ba63a6ae..d0ab4f64875 100755 --- a/pom.xml +++ b/pom.xml @@ -2758,7 +2758,7 @@ ${hadoop-three.version} hbase-hadoop2-compat - src/main/assembly/hadoop-two-compat.xml + src/main/assembly/hadoop-three-compat.xml 3.10.5.Final