Skip to content

Commit 7c7e257

Browse files
Add a README
1 parent 6e78c72 commit 7c7e257

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

extensions/federation/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Using the `HadoopFederatedCatalogFactory`
2+
3+
This module is an independent compilation unit and will be built into the Polaris binary only when the following flag is set in gradle.properties or as a JVM arg at compile time:
4+
5+
```
6+
NonRESTCatalogs=HADOOP,<alternates>
7+
```
8+
9+
Without this flag, the Hadoop factory won't be compiled into Polaris and therefore Polaris will not load the class at runtime, throwing an unsupported exception for federated catalog calls.

runtime/server/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ dependencies {
4949
runtimeOnly(project(":polaris-relational-jdbc"))
5050
runtimeOnly("io.quarkus:quarkus-jdbc-postgresql")
5151

52+
if ((project.findProperty("NonRESTCatalogs") as String?)?.contains("HADOOP") == true) {
53+
runtimeOnly(project(":polaris-extensions-federation-hadoop"))
54+
}
55+
5256
// enforce the Quarkus _platform_ here, to get a consistent and validated set of dependencies
5357
implementation(enforcedPlatform(libs.quarkus.bom))
5458
implementation("io.quarkus:quarkus-container-image-docker")

runtime/service/build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ dependencies {
3030
implementation(project(":polaris-api-management-service"))
3131
implementation(project(":polaris-api-iceberg-service"))
3232
implementation(project(":polaris-api-catalog-service"))
33-
if ((project.findProperty("NonRESTCatalogs") as String?)?.contains("HADOOP") == true) {
34-
runtimeOnly(project(":polaris-extensions-federation-hadoop"))
35-
}
3633

3734
runtimeOnly(project(":polaris-relational-jdbc"))
3835

0 commit comments

Comments
 (0)