Skip to content

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

[#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module (#6376)

Qi Yu45349852629d
diff --git a/catalogs/catalog-hadoop/build.gradle.kts b/catalogs/catalog-hadoop/build.gradle.kts
index 3108d993c1..b8877646f5 100644
--- a/catalogs/catalog-hadoop/build.gradle.kts
+++ b/catalogs/catalog-hadoop/build.gradle.kts
@@ -52,6 +52,12 @@ dependencies {
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.awaitility)