sunxiaojian commented on code in PR #8980:
URL: https://github.com/apache/gravitino/pull/8980#discussion_r2490205727


##########
iceberg/iceberg-common/build.gradle.kts:
##########
@@ -47,25 +47,12 @@ dependencies {
   implementation(libs.iceberg.azure)
   implementation(libs.iceberg.hive.metastore)
   implementation(libs.iceberg.gcp)
-  implementation(libs.hadoop2.common) {
-    exclude("com.github.spotbugs")
-    exclude("com.sun.jersey")
-    exclude("javax.servlet")
-    exclude("org.apache.curator")
-    exclude("org.apache.zookeeper")
-    exclude("org.mortbay.jetty")
-  }
+  // Upgrade to Hadoop 3.3+ for Iceberg 1.10 compatibility
+  // Iceberg 1.10 requires Hadoop 3.3+ APIs like FileSystem.openFile() and 
FsTracer.get()
+  implementation(libs.hadoop3.client.api)
+  implementation(libs.hadoop3.client.runtime)
   // use hdfs-default.xml
-  implementation(libs.hadoop2.hdfs) {
-    exclude("*")
-  }
-  implementation(libs.hadoop2.hdfs.client) {
-    exclude("com.sun.jersey")
-    exclude("javax.servlet")
-    exclude("org.fusesource.leveldbjni")
-    exclude("org.mortbay.jetty")
-  }
-  implementation(libs.hadoop2.mapreduce.client.core) {
+  implementation(libs.hadoop3.hdfs) {

Review Comment:
   @FANNG1 Iceberg 1.10.0 must use Hadoop 3 at runtime because it depends on 
the new API  in Hadoop 3.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to