This is an automated email from the ASF dual-hosted git repository.
Fokko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new a96e7d28c0 MR: Remove unused dependencies (#19052)
a96e7d28c0 is described below
commit a96e7d28c0a77bd4f944ba8f477421be94800460
Author: Fokko Driesprong <[email protected]>
AuthorDate: Fri Nov 20 13:56:38 2026 +0100
MR: Remove unused dependencies (#19052)
* MR: Remove unused dependencies
Drop dependencies left over from when iceberg-mr hosted the Hive
integration, and implementation dependencies that no mr source uses and
that already arrive through iceberg-core, iceberg-orc and iceberg-parquet.
Replace hive-service with a runtime-only hive-metastore, which HiveCatalog
needs in tests.
Generated-by: Claude Code
Co-authored-by: Isaac <[email protected]>
* MR: Narrow project dependencies to what is used
iceberg-mr main code doesn't reference iceberg-common, iceberg-orc,
iceberg-parquet or iceberg-hive-metastore, so drop iceberg-common, which
arrives through iceberg-core, and make the others runtime-only. Tests only
need HiveCatalog from hive-metastore's main code, not its test artifacts.
Generated-by: Claude Code
Co-authored-by: Isaac <[email protected]>
---------
Co-authored-by: Isaac <[email protected]>
---
gradle/libs.versions.toml | 9 --------
mr/build.gradle | 53 ++++++++++++++++-------------------------------
2 files changed, 18 insertions(+), 44 deletions(-)
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index b81c1334a3..915a5dfec5 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -39,7 +39,6 @@ awssdk-s3accessgrants = "2.5.0"
bouncycastle = "1.86"
bson-ver = "4.11.5"
caffeine = "3.3.1"
-calcite = "1.42.0"
datasketches = "6.2.0"
delta-standalone = "3.3.3"
delta-spark = "3.3.3"
@@ -72,7 +71,6 @@ junit = "5.14.4"
junit-platform = "1.14.4"
junit-pioneer = "2.3.0"
kafka = "3.9.2"
-kryo-shaded = "4.0.3"
lz4Java = "1.14.0"
microprofile-openapi-api = "3.1.2"
mockito = "4.11.0"
@@ -92,7 +90,6 @@ spark41 = "4.1.4"
spark42 = "4.2.1"
sqlite-jdbc = "3.54.1.0"
testcontainers = "2.0.5"
-tez08 = { strictly = "0.8.4"} # see rich version usage explanation above
[libraries]
activation = { module = "javax.activation:activation", version.ref =
"activation" }
@@ -117,8 +114,6 @@ bouncycastle-bcpkix = { module =
"org.bouncycastle:bcpkix-jdk18on", version.ref
bouncycastle-bcprov = { module = "org.bouncycastle:bcprov-jdk18on",
version.ref = "bouncycastle" }
bouncycastle-bcutil = { module = "org.bouncycastle:bcutil-jdk18on",
version.ref = "bouncycastle" }
caffeine = { module = "com.github.ben-manes.caffeine:caffeine", version.ref =
"caffeine" }
-calcite-core = { module = "org.apache.calcite:calcite-core", version.ref =
"calcite" }
-calcite-druid = { module = "org.apache.calcite:calcite-druid", version.ref =
"calcite" }
datasketches = { module = "org.apache.datasketches:datasketches-java",
version.ref = "datasketches" }
errorprone-annotations = { module =
"com.google.errorprone:error_prone_annotations", version.ref =
"errorprone-annotations" }
failsafe = { module = "dev.failsafe:failsafe", version.ref = "failsafe"}
@@ -151,7 +146,6 @@ hadoop3-mapreduce-client-core = { module =
"org.apache.hadoop:hadoop-mapreduce-c
hadoop3-minicluster = { module = "org.apache.hadoop:hadoop-minicluster",
version.ref = "hadoop3" }
hive2-exec = { module = "org.apache.hive:hive-exec", version.ref = "hive2" }
hive2-metastore = { module = "org.apache.hive:hive-metastore", version.ref =
"hive2" }
-hive2-service = { module = "org.apache.hive:hive-service", version.ref =
"hive2" }
httpcomponents-httpclient5 = { module =
"org.apache.httpcomponents.client5:httpclient5", version.ref =
"httpcomponents-httpclient5" }
immutables-value = { module = "org.immutables:value", version.ref =
"immutables-value" }
jackson-bom = { module = "com.fasterxml.jackson:jackson-bom", version.ref =
"jackson-bom" }
@@ -208,7 +202,6 @@ junit-pioneer = { module =
"org.junit-pioneer:junit-pioneer", version.ref = "jun
junit-platform-launcher = { module =
"org.junit.platform:junit-platform-launcher", version.ref = "junit-platform" }
junit-suite-api = { module = "org.junit.platform:junit-platform-suite-api",
version.ref = "junit-platform" }
junit-suite-engine = { module =
"org.junit.platform:junit-platform-suite-engine", version.ref =
"junit-platform" }
-kryo-shaded = { module = "com.esotericsoftware:kryo-shaded", version.ref =
"kryo-shaded" }
mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockito" }
mockito-inline = { module = "org.mockito:mockito-inline", version.ref =
"mockito" }
mockito-junit-jupiter = { module = "org.mockito:mockito-junit-jupiter",
version.ref = "mockito" }
@@ -220,5 +213,3 @@ orc-tools = { module = "org.apache.orc:orc-tools",
version.ref = "orc" }
sqlite-jdbc = { module = "org.xerial:sqlite-jdbc", version.ref = "sqlite-jdbc"
}
testcontainers = { module = "org.testcontainers:testcontainers", version.ref =
"testcontainers" }
testcontainers-junit-jupiter = { module =
"org.testcontainers:testcontainers-junit-jupiter", version.ref =
"testcontainers" }
-tez08-dag = { module = "org.apache.tez:tez-dag", version.ref = "tez08" }
-tez08-mapreduce = { module = "org.apache.tez:tez-mapreduce", version.ref =
"tez08" }
diff --git a/mr/build.gradle b/mr/build.gradle
index dac7e3d454..82572b54c9 100644
--- a/mr/build.gradle
+++ b/mr/build.gradle
@@ -18,11 +18,6 @@
*/
project(':iceberg-mr') {
- configurations {
- testImplementation {
- exclude group: 'org.apache.parquet', module: 'parquet-hadoop-bundle'
- }
- }
test {
useJUnitPlatform()
}
@@ -30,48 +25,36 @@ project(':iceberg-mr') {
dependencies {
implementation project(path: ':iceberg-bundled-guava', configuration:
'shadow')
api project(':iceberg-api')
- implementation project(':iceberg-common')
implementation project(':iceberg-core')
api project(':iceberg-data')
- implementation project(':iceberg-hive-metastore')
- implementation project(':iceberg-orc')
- implementation project(':iceberg-parquet')
+ runtimeOnly project(':iceberg-hive-metastore')
+ runtimeOnly project(':iceberg-orc')
+ runtimeOnly project(':iceberg-parquet')
compileOnly(libs.hadoop3.client) {
exclude group: 'org.apache.avro', module: 'avro'
}
- implementation libs.caffeine
- implementation libs.parquet.column
-
implementation("${libs.orc.core.get().module}:${libs.versions.orc.get()}:nohive")
{
- exclude group: 'org.apache.hadoop'
- exclude group: 'commons-lang'
- // These artifacts are shaded and included in the orc-core fat jar
- exclude group: 'com.google.protobuf', module: 'protobuf-java'
- exclude group: 'org.apache.hive', module: 'hive-storage-api'
- }
-
- testImplementation(libs.calcite.core) {
- exclude group: 'org.apache.calcite.avatica', module: 'avatica'
- }
- testImplementation(libs.calcite.druid) {
- exclude group: 'org.apache.calcite.avatica', module: 'avatica'
- }
-
testImplementation project(path: ':iceberg-data', configuration:
'testArtifacts')
testImplementation project(path: ':iceberg-api', configuration:
'testArtifacts')
testImplementation project(path: ':iceberg-core', configuration:
'testArtifacts')
- testImplementation project(path: ':iceberg-hive-metastore', configuration:
'testArtifacts')
+ testImplementation project(':iceberg-hive-metastore')
- testImplementation libs.avro.avro
- testImplementation libs.kryo.shaded
- testImplementation platform(libs.jackson.bom)
- testImplementation libs.jackson.annotations
- testImplementation(libs.hive2.service) {
- exclude group: 'org.apache.hive', module: 'hive-exec'
+ testRuntimeOnly(libs.hive2.metastore) {
+ exclude group: 'org.apache.avro', module: 'avro'
+ exclude group: 'org.slf4j', module: 'slf4j-log4j12'
+ exclude group: 'org.pentaho' // missing dependency
+ exclude group: 'org.apache.hbase'
+ exclude group: 'org.apache.logging.log4j'
+ exclude group: 'co.cask.tephra'
+ exclude group: 'com.google.code.findbugs', module: 'jsr305'
+ exclude group: 'org.eclipse.jetty.aggregate', module: 'jetty-all'
+ exclude group: 'org.eclipse.jetty.orbit', module: 'javax.servlet'
+ exclude group: 'org.apache.parquet', module: 'parquet-hadoop-bundle'
+ exclude group: 'com.tdunning', module: 'json'
+ exclude group: 'javax.transaction', module: 'transaction-api'
+ exclude group: 'com.zaxxer', module: 'HikariCP'
}
- testImplementation libs.tez08.dag
- testImplementation libs.tez08.mapreduce
}
test {