Catalog, warehouse,
and the jobs that maintain the tables.
Five scenarios: how the chart connects to the catalog and storage, how to point it to your Hive Metastore and your Ozone, and how Spark and Trino tables enter maintenance. Each one covers: what changes, the values file block commented line by line, and where the rest lives, on the other component's page.
The tdp-iceberg chart connects to two components: Hive Metastore, which stores the Iceberg table catalog, and Ozone S3 Gateway, where their files are stored. Both addresses go in maintenance.spark.config, which becomes each job's spark-defaults.conf, and S3 keys come from a Secret. Spark and Trino write to the same catalog, each configured in its own chart. For jobs and schedules, see Iceberg Configuration.
Your environment
If you fill in your environment details here, the examples and commands on the page use what you provided. The namespace, the release name and the values file are your choices, not the chart's.
Scenarios
- 1 · How it connects
- 2 · Hive Metastore
- 3 · Ozone S3 Gateway
- 4 · Spark tables
- 5 · Trino tables
The jobs' spark-defaults.conf, the defaults and how to add properties.
Jobs reach tables through maintenance.spark.config: the chart writes these properties to each job's spark-defaults.conf, and the job's Spark uses them to find the iceberg catalog in Hive Metastore and files in S3.
By default, the addresses point to the Hive Metastore and Ozone in the tdp namespace, with the default release names. S3 keys do not go there: the pod receives them from the maintenance.spark.s3Credentials Secret, and Spark uses them in S3A. Iceberg, S3 and Hive Metastore jars are already in the image, so jobs download nothing.
The following scenarios show each connection: Hive Metastore (scenario 2), the Ozone S3 Gateway (scenario 3) and the tables written by Spark (scenario 4) and Trino (scenario 5). Before changing any address, you want to understand how jobs reach tables.
iceberg, type hive, in Hive Metastore in namespace tdp. The name is the one in maintenance.catalog.
Warehouse at s3a://warehouse/hive, through Ozone S3 Gateway in namespace tdp, with path-style.
From the s3-credentials Secret, keys access-key and secret-key.
The jobs, the Hive Metastore and the S3 Gateway
- Maintenance jobs. Each run reads the iceberg catalog in Hive Metastore and the table files in S3, using the addresses in maintenance.spark.config and the keys from the maintenance.spark.s3Credentials Secret. Chart default:
Hive Metastore and Ozone in namespace tdp, with the default release names. (maintenance.spark.config) - Hive Metastore. Stores the Iceberg table catalog. Jobs reach it through the Thrift address in spark.sql.catalog.iceberg.uri; its warehouse must be in S3. Chart default:
tdp-hive-metastore-metastore in namespace tdp. (spark.sql.catalog.iceberg.uri) - Ozone S3 Gateway. Where table files are stored, in the warehouse bucket. Jobs reach it through S3A, with path-style, at the spark.hadoop.fs.s3a.endpoint endpoint. Chart default:
tdp-ozone-s3g-rest in namespace tdp · warehouse s3a://warehouse/hive. (spark.hadoop.fs.s3a.endpoint) - Spark. With Iceberg enabled in the Spark chart, its iceberg catalog is in Hive Metastore and its warehouse in s3a://warehouse/hive, the same defaults as the jobs. Configured in its own chart. (
tdp-spark.iceberg.enabled) - Trino. The Trino iceberg catalog uses iceberg.catalog.type=hive_metastore and the same Hive Metastore address. Configured in its own chart. (
tdp-trino.catalogs.iceberg)
1maintenance:2catalog: iceberg3spark:4 config:5 "spark.sql.extensions": "org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions"6 "spark.sql.catalog.iceberg": "org.apache.iceberg.spark.SparkCatalog"7 "spark.sql.catalog.iceberg.type": "hive"8 "spark.sql.catalog.iceberg.uri": "thrift://tdp-hive-metastore-metastore.tdp.svc.cluster.local:9083"9 "spark.sql.catalog.iceberg.warehouse": "s3a://warehouse/hive"10 "spark.hadoop.fs.s3a.endpoint": "http://tdp-ozone-s3g-rest.tdp.svc.cluster.local:9878"11 "spark.hadoop.fs.s3a.path.style.access": "true"12 "spark.hadoop.fs.s3a.impl": "org.apache.hadoop.fs.s3a.S3AFileSystem"13 s3Credentials:14 secretName: s3-credentials15 accessKeyKey: access-key16 secretKeyKey: secret-key
The name of the catalog maintained by jobs. It must match the spark.sql.catalog.<nome> key below.
- Maintained catalog (linha 2). The name of the catalog maintained by jobs. It must match the spark.sql.catalog.<nome> key below.
- spark-defaults.conf (linha 4). Each key becomes a line in the jobs' spark-defaults.conf. Keys you set are merged with these. The others still apply.
- Catalog in Hive Metastore (linha 7). The Iceberg catalog stores table pointers in a Hive Metastore.
- Thrift address (linha 8). The Hive Metastore Service with the default release name, in namespace tdp (scenario 2).
- S3 endpoint (linha 10). Ozone S3 Gateway with the default release name, in namespace tdp (scenario 3).
- S3 keys (linha 13). The pod receives both keys from this Secret as environment variables, and Spark uses them in S3A.
Check the addresses in use
Helm shows the jobs' catalog, warehouse and S3 endpoint.
helm get notes <RELEASE_NAME> -n <NAMESPACE>
Success criteria
Catalog URI, Warehouse and S3 endpoint show the addresses used by jobs, and the keys Secret appears with the expected name and keys.Any other Spark property is added the same way: a key in maintenance.spark.config, which the chart adds to the jobs' spark-defaults.conf and merges with defaults.
The catalog address and warehouse in S3.
Hive Metastore is where the iceberg catalog stores tables: with the tables list empty, each job maintains all Iceberg tables it finds there. If your Hive Metastore is in another namespace or installed with another release name, change the Thrift address. The Service name is the Hive Metastore release name followed by -metastore. On the Hive Metastore side, the warehouse must be in S3: its default warehouse is on a local volume, while the lakehouse charts expect the warehouse in Ozone.
spark.sql.catalog.iceberg.uri on the Service of the tdp-hive-metastore chart, with the default release name, in namespace tdp.
Hive Metastore with metastore.type: s3 and the warehouse at s3a://warehouse/hive, as in Hive Metastore Configuration.
The jobs reaching the Hive Metastore
- Maintenance jobs. Each run reads the iceberg catalog in Hive Metastore and the table files in S3, using the addresses in maintenance.spark.config and the keys from the maintenance.spark.s3Credentials Secret. Chart default:
Hive Metastore and Ozone in namespace tdp, with the default release names. (maintenance.spark.config) - Hive Metastore. Stores the Iceberg table catalog. Jobs reach it through the Thrift address in spark.sql.catalog.iceberg.uri; its warehouse must be in S3. Chart default:
tdp-hive-metastore-metastore in namespace tdp. (spark.sql.catalog.iceberg.uri) - Ozone S3 Gateway. Where table files are stored, in the warehouse bucket. Jobs reach it through S3A, with path-style, at the spark.hadoop.fs.s3a.endpoint endpoint. Chart default:
tdp-ozone-s3g-rest in namespace tdp · warehouse s3a://warehouse/hive. (spark.hadoop.fs.s3a.endpoint) - Spark. With Iceberg enabled in the Spark chart, its iceberg catalog is in Hive Metastore and its warehouse in s3a://warehouse/hive, the same defaults as the jobs. Configured in its own chart. (
tdp-spark.iceberg.enabled) - Trino. The Trino iceberg catalog uses iceberg.catalog.type=hive_metastore and the same Hive Metastore address. Configured in its own chart. (
tdp-trino.catalogs.iceberg)
1maintenance:2spark:3 config:4 "spark.sql.catalog.iceberg.uri": "thrift://tdp-hive-metastore-metastore.<SHARED_NAMESPACE>.svc.cluster.local:9083"
Only this key changes. The rest of the Spark configuration still comes from the chart.
- Merged with defaults (linha 3). Only this key changes. The rest of the Spark configuration still comes from the chart.
- Hive Metastore Service (linha 4). The Hive Metastore release name followed by -metastore, in its namespace. With another release name, also change the start of the name.
Apply to the release
The jobs' spark-defaults.conf is rewritten with the new address.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-iceberg \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
Catalog URI shown at the end points to your Hive Metastore, and a job run immediately, as in Iceberg Configuration, logs one line for each Iceberg table in the catalog.If the log says no Iceberg tables found in catalog
The specified catalog has no Iceberg tables: check the address and catalog name in When something goes wrong.
The endpoint, warehouse bucket and keys Secret.
Table files are stored in Ozone's warehouse bucket, and jobs reach them through S3 Gateway. If your Ozone is in another namespace or installed with another release name, change the endpoint: the Service name is the Ozone release name followed by -s3g-rest. Path-style and S3A are already chart defaults. Keys come from a Secret: without Ozone Kerberos, any nonempty pair in the default s3-credentials Secret. With Kerberos, the keys from ozone-s3-credentials.
spark.hadoop.fs.s3a.endpoint on the S3 Gateway of the tdp-ozone chart, with the default release name, in namespace tdp. spark.hadoop.fs.s3a.path.style.access enabled.
The warehouse bucket, created in Ozone before installing lakehouse charts, and the keys Secret in the Iceberg namespace.
The jobs reaching the files in Ozone
- Maintenance jobs. Each run reads the iceberg catalog in Hive Metastore and the table files in S3, using the addresses in maintenance.spark.config and the keys from the maintenance.spark.s3Credentials Secret. Chart default:
Hive Metastore and Ozone in namespace tdp, with the default release names. (maintenance.spark.config) - Hive Metastore. Stores the Iceberg table catalog. Jobs reach it through the Thrift address in spark.sql.catalog.iceberg.uri; its warehouse must be in S3. Chart default:
tdp-hive-metastore-metastore in namespace tdp. (spark.sql.catalog.iceberg.uri) - Ozone S3 Gateway. Where table files are stored, in the warehouse bucket. Jobs reach it through S3A, with path-style, at the spark.hadoop.fs.s3a.endpoint endpoint. Chart default:
tdp-ozone-s3g-rest in namespace tdp · warehouse s3a://warehouse/hive. (spark.hadoop.fs.s3a.endpoint) - Spark. With Iceberg enabled in the Spark chart, its iceberg catalog is in Hive Metastore and its warehouse in s3a://warehouse/hive, the same defaults as the jobs. Configured in its own chart. (
tdp-spark.iceberg.enabled) - Trino. The Trino iceberg catalog uses iceberg.catalog.type=hive_metastore and the same Hive Metastore address. Configured in its own chart. (
tdp-trino.catalogs.iceberg)
1maintenance:2spark:3 config:4 "spark.hadoop.fs.s3a.endpoint": "http://tdp-ozone-s3g-rest.<SHARED_NAMESPACE>.svc.cluster.local:9878"5 s3Credentials:6 secretName: ozone-s3-credentials7 accessKeyKey: aws_access_key_id8 secretKeyKey: aws_secret_access_key
The Ozone release name followed by -s3g-rest, in its namespace. Inside the cluster, without TLS.
- S3 endpoint (linha 4). The Ozone release name followed by -s3g-rest, in its namespace. Inside the cluster, without TLS.
- Keys with Kerberos (linha 5). The Secret issued by Ozone with Kerberos enabled, copied to the Iceberg namespace. See Security - Iceberg for how to copy it.
Apply to the release
The jobs' spark-defaults.conf is rewritten with the new endpoint.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-iceberg \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
S3 endpoint shown at the end points to your Ozone, and a job run immediately finishes with all tables completed (tables done), with no FAILED lines.Keys and copying ozone-s3-credentials are covered in Security - Iceberg. The bucket, endpoint and other Ozone consumers are covered in Integrations - Apache Ozone.
The Spark iceberg catalog in the same Hive Metastore.
Iceberg tables are usually created and written by Spark. With Iceberg enabled in the Spark chart, its iceberg catalog is in Hive Metastore and its warehouse at s3a://warehouse/hive, the same defaults as maintenance jobs. With Spark and jobs pointed to the same Hive Metastore, and the jobs' tables list empty, the tables Spark writes to the iceberg catalog are the ones jobs find and maintain. Configuration belongs in the Spark chart. Only the end-to-end verification is shown here.
tdp-spark.iceberg.enabled: true, with the Hive Metastore address in iceberg.catalog.uri and S3 endpoint in iceberg.storage.endpoint.
Spark on the same catalog as the jobs
- Maintenance jobs. Each run reads the iceberg catalog in Hive Metastore and the table files in S3, using the addresses in maintenance.spark.config and the keys from the maintenance.spark.s3Credentials Secret. Chart default:
Hive Metastore and Ozone in namespace tdp, with the default release names. (maintenance.spark.config) - Hive Metastore. Stores the Iceberg table catalog. Jobs reach it through the Thrift address in spark.sql.catalog.iceberg.uri; its warehouse must be in S3. Chart default:
tdp-hive-metastore-metastore in namespace tdp. (spark.sql.catalog.iceberg.uri) - Ozone S3 Gateway. Where table files are stored, in the warehouse bucket. Jobs reach it through S3A, with path-style, at the spark.hadoop.fs.s3a.endpoint endpoint. Chart default:
tdp-ozone-s3g-rest in namespace tdp · warehouse s3a://warehouse/hive. (spark.hadoop.fs.s3a.endpoint) - Spark. With Iceberg enabled in the Spark chart, its iceberg catalog is in Hive Metastore and its warehouse in s3a://warehouse/hive, the same defaults as the jobs. Configured in its own chart. (
tdp-spark.iceberg.enabled) - Trino. The Trino iceberg catalog uses iceberg.catalog.type=hive_metastore and the same Hive Metastore address. Configured in its own chart. (
tdp-trino.catalogs.iceberg)
Create a test table through Spark
A new Iceberg table in the iceberg catalog, from the Spark master pod.
kubectl -n <DEDICATED_NAMESPACE> exec -it \
$(kubectl -n <DEDICATED_NAMESPACE> get pod -l app.kubernetes.io/component=master -o jsonpath='{.items[0].metadata.name}') \
-- spark-sql --master spark://<SPARK_MASTER_SERVICE>:7077 \
-e "CREATE NAMESPACE IF NOT EXISTS iceberg.demo; CREATE TABLE iceberg.demo.t (id BIGINT) USING iceberg; INSERT INTO iceberg.demo.t VALUES (1); SELECT * FROM iceberg.demo.t;"
The command finds the master pod by its label. The master is served by the Service: with the Spark release spark, spark-master-svc. With another release name, the Service starts with the release name followed by -spark, or only the release name when it already contains spark, and ends with -master-svc. <DEDICATED_NAMESPACE> is the Spark release namespace.
Run an Iceberg job immediately
The job now finds the new table.
Run expire-snapshots immediately, as in Iceberg Configuration.
Success criteria
demo.t.The complete Spark block, with S3 endpoint and keys, is in Integrations - Spark.
The Trino iceberg connector in the same Hive Metastore.
Trino queries and writes Iceberg tables through the iceberg connector, with a catalog of type hive_metastore. Pointed to the same Hive Metastore and S3 Gateway as jobs, it works on the same tables maintained by jobs. Configuration belongs in the Trino chart, in a catalog under tdp-trino.catalogs.
A catalog with connector.name=iceberg, iceberg.catalog.type=hive_metastore, the same hive.metastore.uri and the same S3 endpoint as jobs.
Trino on the same catalog as the jobs
- Maintenance jobs. Each run reads the iceberg catalog in Hive Metastore and the table files in S3, using the addresses in maintenance.spark.config and the keys from the maintenance.spark.s3Credentials Secret. Chart default:
Hive Metastore and Ozone in namespace tdp, with the default release names. (maintenance.spark.config) - Hive Metastore. Stores the Iceberg table catalog. Jobs reach it through the Thrift address in spark.sql.catalog.iceberg.uri; its warehouse must be in S3. Chart default:
tdp-hive-metastore-metastore in namespace tdp. (spark.sql.catalog.iceberg.uri) - Ozone S3 Gateway. Where table files are stored, in the warehouse bucket. Jobs reach it through S3A, with path-style, at the spark.hadoop.fs.s3a.endpoint endpoint. Chart default:
tdp-ozone-s3g-rest in namespace tdp · warehouse s3a://warehouse/hive. (spark.hadoop.fs.s3a.endpoint) - Spark. With Iceberg enabled in the Spark chart, its iceberg catalog is in Hive Metastore and its warehouse in s3a://warehouse/hive, the same defaults as the jobs. Configured in its own chart. (
tdp-spark.iceberg.enabled) - Trino. The Trino iceberg catalog uses iceberg.catalog.type=hive_metastore and the same Hive Metastore address. Configured in its own chart. (
tdp-trino.catalogs.iceberg)
The complete iceberg catalog, with TDP chart addresses and S3 keys, is in Integrations - Trino.
When something goes wrong
Troubleshooting
Paste the error message or choose a symptom. The answer includes the cause, what to do and the command.
- no Iceberg tables found in catalog. Cause: The Hive Metastore in spark.sql.catalog.iceberg.uri is not the one holding your tables, or maintenance.catalog does not match the catalog name in maintenance.spark.config. What to do: Check the Catalog URI shown by Helm and the catalog name (scenarios 1 and 2).
- One table fails and the job ends as Failed. Cause: The job could not maintain that table: the log shows the error on the table line. The job continues with the others and fails only at the end. What to do: Check the S3 endpoint (scenario 3), the keys and whether the warehouse bucket exists in Ozone.
- Other problem. Cause: Start with the job pod status and namespace events. What to do: Events in chronological order show what prevents the pod from starting.