Skip to main content
Version 3.0

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.

ChartVersion3.0.3TypeapplicationAppVersion1.10.1
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

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​

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.

Catalog

iceberg, type hive, in Hive Metastore in namespace tdp. The name is the one in maintenance.catalog.

Files

Warehouse at s3a://warehouse/hive, through Ozone S3 Gateway in namespace tdp, with path-style.

Keys

From the s3-credentials Secret, keys access-key and secret-key.

The jobs, the Hive Metastore and the S3 Gateway

namespace <NAMESPACE>ThriftS3AMaintenance jobscatalog iceberg · spark-defaults.confHive Metastoretable catalog · ThriftOzone S3 Gatewaywarehouse · S3ASparkiceberg catalogTrinoiceberg connector
  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
With chart defaults, jobs communicate with Hive Metastore and S3 Gateway in namespace tdp. Click an element to see what it is.

Chart defaults, without classpath lines. You do not need to copy any of this into your file.

1maintenance:
2catalog: iceberg
3spark:
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-credentials
15 accessKeyKey: access-key
16 secretKeyKey: secret-key

The name of the catalog maintained by jobs. It must match the spark.sql.catalog.<nome> key below.

  1. Maintained catalog (linha 2). The name of the catalog maintained by jobs. It must match the spark.sql.catalog.<nome> key below.
  2. 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.
  3. Catalog in Hive Metastore (linha 7). The Iceberg catalog stores table pointers in a Hive Metastore.
  4. Thrift address (linha 8). The Hive Metastore Service with the default release name, in namespace tdp (scenario 2).
  5. S3 endpoint (linha 10). Ozone S3 Gateway with the default release name, in namespace tdp (scenario 3).
  6. S3 keys (linha 13). The pod receives both keys from this Secret as environment variables, and Spark uses them in S3A.
The Spark configuration included in the chart

Check the addresses in use

Helm shows the jobs' catalog, warehouse and S3 endpoint.

Terminal input
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.

When something goes wrong​

Troubleshooting

Paste the error message or choose a symptom. The answer includes the cause, what to do and the command.

  1. 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).
  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.
  3. 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.

Next steps​