Skip to content

Commit

Permalink
Merge pull request #24319 from nvartolomei/nv/iceberg-gcp
Browse files Browse the repository at this point in the history
rptest/s: apache iceberg rest catalog with fs mode on gcp
  • Loading branch information
nvartolomei authored Nov 27, 2024
2 parents a57e39c + 1b95563 commit 613c885
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/java/iceberg-rest-catalog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,23 @@ dependencies {

implementation 'org.xerial:sqlite-jdbc:3.46.1.0'
implementation 'org.postgresql:postgresql:42.7.4'

// Support for gs:// URIs when running with Hadoop FileSystem catalog.
implementation "com.google.cloud.bigdataoss:gcs-connector:3.0.0"
implementation "com.google.cloud.bigdataoss:gcsio:3.0.0"
implementation "com.google.cloud.bigdataoss:util-hadoop:3.0.0"
implementation "com.google.cloud.bigdataoss:util:3.0.0"

// Adding the bigdataoss dependencies to support GCS results in messed
// dependency tree and failures to resolve some methods caused by
// incompatible versions. I.e. we are missing `com.google.cloud.ServiceOptions.getUniverseDomain`.
// Adding explicit dependency to the first version which adds this method
// solves the problem.
implementation 'com.google.cloud:google-cloud-core:2.31.0'

// The gcs-connector complains about missing protobuf-java classes.
// Adding the dependency here to make it work.
implementation "com.google.protobuf:protobuf-java:3.23.2"
}

jar {
Expand Down
5 changes: 5 additions & 0 deletions tests/rptest/services/apache_iceberg_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ class IcebergRESTCatalog(Service):
<value>{{ fs_dedicated_nodes }}</value>
</property>
<property>
<name>fs.gs.impl</name>
<value>com.google.cloud.hadoop.fs.gcs.GoogleHadoopFileSystem</value>
</property>
{{extra_config}}
</configuration>""")

Expand Down

0 comments on commit 613c885

Please sign in to comment.