Connect to Iceberg table on GCS #3135
-
|
Hi, I try to connect to Iceberg table on GCS and Hive Metastore I can connect to Hive Metastore and list all schemas and table, but when I access to table, alway failed I have tried jar file into lib folder:
but not work |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
I use shaded version and it worked |
Beta Was this translation helpful? Give feedback.
-
|
I am experiencing several issues while attempting to connect Amoro AMS to an external Iceberg REST catalog (Apache Polaris) using Google Cloud Storage (GCS) as the storage layer and Polaris vended-credentials for authentication. Despite adding the necessary JAR files to the lib directory (including gcs-connector-hadoop3-shaded and iceberg-gcp-bundle), I have encountered the following roadblocks:
Simply adding the gcs-connector-shaded library (as suggested in issue #3135) does not resolve the issue in a Polaris + Amoro architecture. The system struggles to correctly load GCP classes into the Classpath and fails to prioritize GCSFileIO over HadoopFileIO when handling delegated access tokens. |
Beta Was this translation helpful? Give feedback.
-
|
when create catalog, in hive-site.xml, add gs implement config. Here is my hive-site.xml: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property>
<name>fs.gs.impl</name>
<value>com.google.cloud.hadoop.fs.gcs.GoogleHadoopFileSystem</value>
</property>
<property>
<name>fs.AbstractFileSystem.gs.impl</name>
<value>com.google.cloud.hadoop.fs.gcs.GoogleHadoopFS</value>
</property>
<property>
<name>fs.gs.status.parallel.enable</name>
<value>false</value>
</property>
<property>
<name>fs.gs.max.requests.per.batch</name>
<value>30</value>
</property>
<property>
<name>fs.gs.batch.threads</name>
<value>30</value>
</property>
<property>
<name>fs.gs.list.max.items.per.call</name>
<value>50000</value>
</property>
<property>
<name>fs.gs.implicit.dir.repair.enable</name>
<value>false</value>
</property>
</configuration> |
Beta Was this translation helpful? Give feedback.
I use shaded version and it worked
https://repo1.maven.org/maven2/com/google/cloud/bigdataoss/gcs-connector/hadoop3-2.2.10/gcs-connector-hadoop3-2.2.10-shaded.jar