Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[MINOR] Remove unnecessary dependencies (#8736)

Jerry Shao6d29c37b5e77
diff --git a/catalogs/catalog-fileset/build.gradle.kts b/catalogs/catalog-fileset/build.gradle.kts
index c3c41ed530..7629a1e002 100644
--- a/catalogs/catalog-fileset/build.gradle.kts
+++ b/catalogs/catalog-fileset/build.gradle.kts
@@ -46,21 +46,6 @@ dependencies {
implementation(libs.commons.io)
implementation(libs.hadoop3.client.api)
implementation(libs.hadoop3.client.runtime)
- implementation(libs.hadoop3.hdfs) {
- exclude("com.sun.jersey")
- exclude("javax.servlet", "servlet-api")
- exclude("com.google.guava", "guava")
- exclude("commons-io", "commons-io")
- exclude("org.eclipse.jetty", "*")
- exclude("io.netty")
- exclude("org.fusesource.leveldbjni")
- // Exclude `protobuf-java` 2.5.0 to avoid conflict with a higher version of `protobuf-java`
- // in the authorization module. The reason is that the class loader of `catalog-hadoop` is the
- // parent of the class loader of the authorization module, so the class loader of `catalog-hadoop`
- // will load the class `protobuf-java` 2.5.0 first, which will cause the authorization module to
- // fail to load the class `protobuf-java` 3.15.8.
- exclude("com.google.protobuf", "protobuf-java")
- }
implementation(libs.slf4j.api)
implementation(libs.metrics.caffeine)
implementation(libs.metrics.core)
diff --git a/catalogs/catalog-fileset/src/test/java/org/apache/gravitino/catalog/fileset/integration/test/HadoopUserAuthenticationIT.java b/catalogs/catalog-fileset/src/test/java/org/apache/gravitino/catalog/fileset/integration/test/HadoopUserAuthenticationIT.java
index e218561e7c..629c772248 100644
--- a/catalogs/catalog-fileset/src/test/java/org/apache/gravitino/catalog/fileset/integration/test/HadoopUserAuthenticationIT.java
+++ b/catalogs/catalog-fileset/src/test/java/org/apache/gravitino/catalog/fileset/integration/test/HadoopUserAuthenticationIT.java
@@ -252,6 +252,7 @@ public class HadoopUserAuthenticationIT extends BaseIT {
properties.put(KEY_TAB_URI_KEY, TMP_DIR + HADOOP_CLIENT_KEYTAB);
properties.put(PRINCIPAL_KEY, HADOOP_CLIENT_PRINCIPAL);
properties.put("location", HDFS_URL + "/user/hadoop/");
+ properties.put("gravitino.bypass.dfs.namenode.kerberos.principal.pattern", "*");
kerberosHiveContainer.executeInContainer("hadoop", "fs", "-mkdir", "/user/hadoop");
@@ -327,6 +328,7 @@ public class HadoopUserAuthenticationIT extends BaseIT {
properties.put(KEY_TAB_URI_KEY, TMP_DIR + HADOOP_CLIENT_KEYTAB);
properties.put(PRINCIPAL_KEY, HADOOP_CLIENT_PRINCIPAL);
properties.put("location", location);
+ properties.put("gravitino.bypass.dfs.namenode.kerberos.principal.pattern", "*");
kerberosHiveContainer.executeInContainer(
"hadoop", "fs", "-mkdir", "-p", "/user/hadoop/" + catalogName);
@@ -430,6 +432,7 @@ public class HadoopUserAuthenticationIT extends BaseIT {
properties.put(KEY_TAB_URI_KEY, TMP_DIR + HADOOP_CLIENT_KEYTAB);
properties.put(PRINCIPAL_KEY, HADOOP_CLIENT_PRINCIPAL);
properties.put("location", location);
+ properties.put("gravitino.bypass.dfs.namenode.kerberos.principal.pattern", "*");
kerberosHiveContainer.executeInContainer(
"hadoop", "fs", "-mkdir", "-p", "/user/hadoop/" + catalogName);
@@ -578,6 +581,7 @@ public class HadoopUserAuthenticationIT extends BaseIT {
properties.put(PRINCIPAL_KEY, HADOOP_CLIENT_PRINCIPAL);
properties.put(AUTH_TYPE_KEY, "kerberos");
properties.put("location", localtion);
+ properties.put("gravitino.bypass.dfs.namenode.kerberos.principal.pattern", "*");
kerberosHiveContainer.executeInContainer(
"hadoop", "fs", "-mkdir", "-p", "/user/hadoop/" + catalogName);
diff --git a/catalogs/hadoop-common/build.gradle.kts b/catalogs/hadoop-common/build.gradle.kts
index 09fd9f8017..acdeca33e2 100644
--- a/catalogs/hadoop-common/build.gradle.kts
+++ b/catalogs/hadoop-common/build.gradle.kts
@@ -24,7 +24,6 @@ plugins {
// try to avoid adding extra dependencies because it is used by catalogs and connectors.
dependencies {
implementation(project(":api"))
- implementation(project(":catalogs:catalog-common"))
implementation(libs.commons.lang3)
implementation(libs.hadoop3.client.api)
implementation(libs.hadoop3.client.runtime)