From fb56e4c454e0d3c4a980eaa7e738ded597cb92ea Mon Sep 17 00:00:00 2001 From: stack Date: Fri, 15 Mar 2019 00:27:13 -0700 Subject: [PATCH] HBASE-22052 pom cleaning; filter out jersey-core in hadoop2 to match hadoop3 and remove redunant version specifications This is a reapply of a reverted commit with amendments. This commit includes HBASE-22059 amendment. We reverted because of the HBASE-22059 amendment. This patch is HBASE-22052 plus an amended HBASE-22059. See HBASE-22052 for full story. jersey-core is problematic. It was transitively included from hadoop and polluting our CLASSPATH with an implementation of a 1.x version of the javax.ws.rs.core.Response Interface from jsr311-api when we want the javax.ws.rs-api 2.x version. M hbase-endpoint/pom.xml M hbase-http/pom.xml M hbase-mapreduce/pom.xml M hbase-rest/pom.xml M hbase-server/pom.xml M hbase-zookeeper/pom.xml Remove redundant version specification (and the odd property define done already up in parent pom). M hbase-it/pom.xml M hbase-rest/pom.xml Exclude jersey-core explicitly. M hbase-procedure/pom.xml Remove redundant version and classifier. M pom.xml Add jersey-core exclusions to all dependencies that pull it in except hadoop-minicluster. mr tests fail w/o the jersey-core so let it in for minicluster and then in modules, exclude it where it causes damage as in hbase-it. --- hbase-endpoint/pom.xml | 3 - hbase-http/pom.xml | 3 - hbase-it/pom.xml | 24 ++++-- hbase-mapreduce/pom.xml | 3 - hbase-rest/pom.xml | 28 +++--- hbase-server/pom.xml | 36 ++++++++ hbase-shaded/hbase-shaded-mapreduce/pom.xml | 24 ++++++ hbase-zookeeper/pom.xml | 3 - pom.xml | 94 +++++++++++++++++++++ 9 files changed, 191 insertions(+), 27 deletions(-) diff --git a/hbase-endpoint/pom.xml b/hbase-endpoint/pom.xml index caa8bf6468a..52ebb635bf1 100644 --- a/hbase-endpoint/pom.xml +++ b/hbase-endpoint/pom.xml @@ -327,9 +327,6 @@ 3.0 - - ${hadoop-three.version} - org.apache.hadoop diff --git a/hbase-http/pom.xml b/hbase-http/pom.xml index df091d1e0e8..74bb31d3e6d 100644 --- a/hbase-http/pom.xml +++ b/hbase-http/pom.xml @@ -416,9 +416,6 @@ 3.0 - - ${hadoop-three.version} - org.apache.hadoop diff --git a/hbase-it/pom.xml b/hbase-it/pom.xml index f0023c9af08..005bb361487 100644 --- a/hbase-it/pom.xml +++ b/hbase-it/pom.xml @@ -162,6 +162,16 @@ + + + javax.ws.rs + javax.ws.rs-api + test + org.apache.hbase @@ -218,6 +228,15 @@ org.apache.hbase hbase-testing-util + + + + com.sun.jersey + jersey-core + + org.apache.hbase.thirdparty @@ -243,11 +262,6 @@ org.apache.htrace htrace-core4 - - javax.ws.rs - javax.ws.rs-api - test - org.glassfish.jersey.core jersey-client diff --git a/hbase-mapreduce/pom.xml b/hbase-mapreduce/pom.xml index 1947572ceeb..0619e8552e9 100644 --- a/hbase-mapreduce/pom.xml +++ b/hbase-mapreduce/pom.xml @@ -416,9 +416,6 @@ 3.0 - - ${hadoop-three.version} - org.apache.hadoop diff --git a/hbase-rest/pom.xml b/hbase-rest/pom.xml index 29d01d9446b..594993d7efe 100644 --- a/hbase-rest/pom.xml +++ b/hbase-rest/pom.xml @@ -172,6 +172,15 @@ + + + javax.ws.rs + javax.ws.rs-api + org.apache.hbase @@ -227,6 +236,15 @@ org.apache.hbase hbase-testing-util test + + + + com.sun.jersey + jersey-core + + org.apache.hbase @@ -273,10 +291,6 @@ javax.servlet javax.servlet-api - - javax.ws.rs - javax.ws.rs-api - org.eclipse.jetty jetty-server @@ -414,7 +428,6 @@ org.apache.hadoop hadoop-annotations - ${hadoop-two.version} org.apache.hadoop @@ -443,7 +456,6 @@ org.apache.hadoop hadoop-yarn-server-nodemanager - ${hadoop-three.version} com.sun.jersey @@ -454,7 +466,6 @@ org.apache.hadoop hadoop-yarn-server-resourcemanager - ${hadoop-three.version} com.sun.jersey @@ -465,7 +476,6 @@ org.apache.hadoop hadoop-yarn-server-timelineservice - ${hadoop-three.version} javax.ws.rs @@ -476,7 +486,6 @@ org.apache.hadoop hadoop-yarn-common - ${hadoop-three.version} com.sun.jersey @@ -495,7 +504,6 @@ org.apache.hadoop hadoop-annotations - ${hadoop-three.version} org.apache.hadoop diff --git a/hbase-server/pom.xml b/hbase-server/pom.xml index 7b49071a2c9..86d97366560 100644 --- a/hbase-server/pom.xml +++ b/hbase-server/pom.xml @@ -694,10 +694,35 @@ + + org.apache.hadoop + hadoop-distcp + + ${hadoop-two.version} + org.apache.hadoop hadoop-common + + org.apache.hadoop + hadoop-auth + + + org.apache.hadoop + hadoop-annotations + + + org.apache.hadoop + hadoop-client + + + com.google.guava + guava + + + org.apache.hadoop hadoop-mapreduce-client-core @@ -790,6 +815,13 @@ + + org.apache.hadoop + hadoop-distcp + + ${hadoop-three.version} + org.apache.hadoop hadoop-common @@ -819,6 +851,10 @@ test-jar test + + org.apache.hadoop + hadoop-annotations + org.apache.hadoop hadoop-minicluster diff --git a/hbase-shaded/hbase-shaded-mapreduce/pom.xml b/hbase-shaded/hbase-shaded-mapreduce/pom.xml index 6aeb2a3e1c3..9f3fdb86839 100644 --- a/hbase-shaded/hbase-shaded-mapreduce/pom.xml +++ b/hbase-shaded/hbase-shaded-mapreduce/pom.xml @@ -267,6 +267,30 @@ com.google.guava guava + + com.sun.jersey + jersey-server + + + com.sun.jersey + jersey-client + + + com.sun.jersey + jersey-core + + + com.sun.jersey + jersey-json + + + com.sun.jersey.contribs + jersey-guice + + + javax.xml.bind + jaxb-api + diff --git a/hbase-zookeeper/pom.xml b/hbase-zookeeper/pom.xml index 1acd157900c..7a55b82cc51 100644 --- a/hbase-zookeeper/pom.xml +++ b/hbase-zookeeper/pom.xml @@ -342,9 +342,6 @@ 3.0 - - ${hadoop-three.version} - org.apache.hadoop diff --git a/pom.xml b/pom.xml index b48d9b15d32..f1573593826 100755 --- a/pom.xml +++ b/pom.xml @@ -2420,6 +2420,10 @@ hadoop-mapreduce-client-core ${hadoop-two.version} + + com.sun.jersey + jersey-core + io.netty netty @@ -2447,6 +2451,10 @@ hadoop-mapreduce-client-jobclient ${hadoop-two.version} + + com.sun.jersey + jersey-core + io.netty netty @@ -2464,6 +2472,10 @@ test-jar test + + com.sun.jersey + jersey-core + io.netty netty @@ -2479,6 +2491,14 @@ hadoop-hdfs ${hadoop-two.version} + + com.sun.jersey + jersey-core + + + org.apache.htrace + htrace-core + javax.servlet.jsp jsp-api @@ -2552,6 +2572,10 @@ com.google.guava guava + + com.sun.jersey + jersey-core + @@ -2564,6 +2588,14 @@ hadoop-common ${hadoop-two.version} + + com.sun.jersey + jersey-core + + + org.apache.htrace + htrace-core + commons-beanutils commons-beanutils @@ -2602,6 +2634,23 @@ + + org.apache.hadoop + hadoop-common + ${hadoop-two.version} + test-jar + test + + + com.sun.jersey + jersey-core + + + com.google.code.findbugs + jsr305 + + + org.apache.hadoop hadoop-client @@ -2614,6 +2663,18 @@ hadoop-minicluster ${hadoop-two.version} + commons-httpclient commons-httpclient @@ -2646,6 +2707,11 @@ ${hadoop-two.version} test + + org.apache.hadoop + hadoop-annotations + ${hadoop-two.version} + @@ -2681,6 +2747,10 @@ hadoop-mapreduce-client-core ${hadoop-three.version} + + com.sun.jersey + jersey-core + io.netty netty @@ -2708,6 +2778,10 @@ hadoop-mapreduce-client-jobclient ${hadoop-three.version} + + com.sun.jersey + jersey-core + io.netty netty @@ -2721,6 +2795,10 @@ test-jar test + + com.sun.jersey + jersey-core + io.netty netty @@ -2906,6 +2984,10 @@ com.sun.jersey jersey-core + + com.google.code.findbugs + jsr305 + @@ -2925,6 +3007,18 @@ hadoop-minicluster ${hadoop-three.version} + commons-httpclient commons-httpclient