From 5eb83b4c7c657a99ff59dc94ec9dee97508a6b34 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Mon, 4 Jul 2022 14:19:39 +0800 Subject: [PATCH] [KYUUBI #2999] Fix Kyuubi Hive Beeline dependencies ### _Why are the changes needed?_ Before https://github.com/apache/incubator-kyuubi/pull/1715, `kyuubi-hive-beeline` and `kyuubi-hive-jdbc` managed dependencies in-self, after https://github.com/apache/incubator-kyuubi/pull/1715 and https://github.com/apache/incubator-kyuubi/issues/1716, `kyuubi-hive-beeline` uses some transitive dependencies of `kyuubi-hive-jdbc`, the recent dependencies change of `kyuubi-hive-jdbc` breaks `kyuubi-hive-beeline`. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2999 from pan3793/beeline. Closes #2999 b92b8a17 [Cheng Pan] Fix Kyuubi Hive Beeline dependencies Authored-by: Cheng Pan Signed-off-by: Cheng Pan --- dev/dependencyList | 2 +- kyuubi-hive-beeline/pom.xml | 43 +++++++++++++++++++++++++++------ kyuubi-hive-jdbc-shaded/pom.xml | 4 +-- kyuubi-hive-jdbc/pom.xml | 15 +----------- kyuubi-rest-client/pom.xml | 1 - pom.xml | 29 +++++++++++++++++++--- 6 files changed, 66 insertions(+), 28 deletions(-) diff --git a/dev/dependencyList b/dev/dependencyList index 91d8877f4..b7264579d 100644 --- a/dev/dependencyList +++ b/dev/dependencyList @@ -46,7 +46,7 @@ hk2-locator/2.6.1//hk2-locator-2.6.1.jar hk2-utils/2.6.1//hk2-utils-2.6.1.jar htrace-core4/4.1.0-incubating//htrace-core4-4.1.0-incubating.jar httpclient/4.5.13//httpclient-4.5.13.jar -httpcore/4.4.13//httpcore-4.4.13.jar +httpcore/4.4.15//httpcore-4.4.15.jar jackson-annotations/2.13.3//jackson-annotations-2.13.3.jar jackson-core/2.13.3//jackson-core-2.13.3.jar jackson-databind/2.13.3//jackson-databind-2.13.3.jar diff --git a/kyuubi-hive-beeline/pom.xml b/kyuubi-hive-beeline/pom.xml index a7259d851..0b62dc55f 100644 --- a/kyuubi-hive-beeline/pom.xml +++ b/kyuubi-hive-beeline/pom.xml @@ -54,6 +54,18 @@ + + org.apache.hive + hive-common + ${hive.version} + + + * + * + + + + org.apache.hive hive-jdbc @@ -66,16 +78,33 @@ + + org.apache.hive + hive-service-rpc + ${hive.version} + + + * + * + + + + + + org.apache.hive + hive-service + ${hive.version} + + + * + * + + + + commons-cli commons-cli - ${hive.client.commons-cli.version} - - - * - * - - diff --git a/kyuubi-hive-jdbc-shaded/pom.xml b/kyuubi-hive-jdbc-shaded/pom.xml index 843a12fbe..031120234 100644 --- a/kyuubi-hive-jdbc-shaded/pom.xml +++ b/kyuubi-hive-jdbc-shaded/pom.xml @@ -45,7 +45,7 @@ org.apache.hive hive-storage-api - ${hive.client.storage-api.version} + ${hive.storage-api.version} true @@ -109,7 +109,7 @@ org.apache.httpcomponents httpcore - ${hive.client.httpcomponents-core.version} + ${httpcore.version} true diff --git a/kyuubi-hive-jdbc/pom.xml b/kyuubi-hive-jdbc/pom.xml index 8fd938d25..da751da0a 100644 --- a/kyuubi-hive-jdbc/pom.xml +++ b/kyuubi-hive-jdbc/pom.xml @@ -40,7 +40,7 @@ org.apache.hive hive-storage-api - ${hive.client.storage-api.version} + ${hive.storage-api.version} * @@ -116,19 +116,6 @@ org.apache.httpcomponents httpclient - ${httpclient.version} - - - * - * - - - - - - org.apache.httpcomponents - httpcore - ${hive.client.httpcomponents-core.version} diff --git a/kyuubi-rest-client/pom.xml b/kyuubi-rest-client/pom.xml index a44468132..d4821170e 100644 --- a/kyuubi-rest-client/pom.xml +++ b/kyuubi-rest-client/pom.xml @@ -59,7 +59,6 @@ org.apache.httpcomponents httpclient - ${httpclient.version} diff --git a/pom.xml b/pom.xml index e16ca59bd..9619e0452 100644 --- a/pom.xml +++ b/pom.xml @@ -104,6 +104,7 @@ https://archive.apache.org/dist 1.67 4.2.8 + 1.5.0 1.15 3.2.2 2.8.0 @@ -133,6 +134,7 @@ ${apache.archive.dist}/hive/hive-${hive.engine.hive.version} false 4.5.13 + 4.4.15 0.11.1 iceberg-spark-runtime-3.2_${scala.binary.version} 0.13.2 @@ -176,10 +178,7 @@ 3.4.14 - 1.2 - 4.4.13 2.12 - 2.7.2 2.2.0 UTF-8 @@ -361,6 +360,12 @@ ${google.jsr305.version} + + commons-cli + commons-cli + ${commons-cli.version} + + commons-codec commons-codec @@ -794,6 +799,24 @@ ${jackson.version} + + org.apache.httpcomponents + httpclient + ${httpclient.version} + + + commons-logging + commons-logging + + + + + + org.apache.httpcomponents + httpcore + ${httpcore.version} + +