Skip to main content
Version 3.0

One catalog,
several engines.

Four scenarios: how the metastore is accessed and what comes by default, the database in a shared PostgreSQL, the warehouse in Ozone, and the connection with Trino, Spark, Iceberg, and Delta Lake. Each one covers: what changes, the configuration block commented line by line, and the verification.

ChartVersion3.0.3TypeapplicationAppVersion4.0.0
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

The tdp-hive-metastore chart connects the metastore to two things in its own values file: PostgreSQL, which stores metadata, and the warehouse, which stores table data. Consumers, such as Trino and Spark, work the other way around: each receives the metastore Thrift address in its own chart's values file.

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 Thrift address consumers receive and where the database and warehouse are by default.

The other components reach Hive Metastore through the Thrift address of the Service <RELEASE_NAME>-metastore, on the port in metastore.port, and each receives that address in its own chart's values file. What the Hive Metastore chart decides is where the database and warehouse are stored: by default, both are in the release itself, in embedded PostgreSQL and a local volume.

The following tabs move the database to shared PostgreSQL (scenario 2) and the warehouse to Ozone (scenario 3), and show where Trino, Spark, Iceberg and Delta Lake receive the address (scenario 4).

In the metastore chart

The database (postgres.enabled, postgres.external and TDP-Settings.externalDatabase) and warehouse (metastore.type and metastore.s3).

In consumers

The Thrift address of the <RELEASE_NAME>-metastore Service, on the port in metastore.port.

The database and the warehouse in the release itself

ThriftThriftThriftThriftJDBCTrinohive and iceberg catalogsSparkiceberg and Delta catalogIceberg and Delta Lakemaintenance jobsOther clientsThriftService<RELEASE_NAME>-metastoreHive MetastoreTable metadataEmbedded PostgreSQL<RELEASE_NAME>-postgresWarehouse PVC<RELEASE_NAME>-hive-warehouse-pvc
  1. Trino. Receives the address in hive.metastore.uri, in each catalog definition. (tdp-trino.catalogs)
  2. Spark. Receives the address in iceberg.catalog.uri and, for Delta tables, in deltaLake.metastoreUri. (tdp-spark.iceberg.catalog.uri)
  3. Iceberg and Delta Lake. Maintenance jobs receive the address in maintenance.spark.config. (maintenance.spark.config)
  4. Other clients. Any client supporting the metastore Thrift protocol uses the same address.
  5. Metastore address. thrift://<RELEASE_NAME>-metastore.<NAMESPACE>.svc.cluster.local, on the port in metastore.port. (tdp-hive-metastore.metastore.port)
  6. Hive Metastore. Stores databases, tables, partitions and file locations. The chart itself connects the metastore to the database and warehouse.
  7. Embedded PostgreSQL. The default: a PostgreSQL instance dedicated to the catalog, in the release itself. Chart default: embedded. (tdp-hive-metastore.postgres.enabled)
  8. Warehouse on a local volume. The default: a volume in the release itself, mounted at the directory in metastore.file.warehouseDir. Chart default: metastore.type: file. (tdp-hive-metastore.metastore.type)
With defaults, the database and warehouse are in the release itself. Click each element.

The address consumers receive

Thrift address
thrift://<RELEASE_NAME>-metastore.<NAMESPACE>.svc.cluster.local:9083

Check that the address responds

The Service endpoints list the metastore pod.

Terminal input
kubectl -n <NAMESPACE> get endpoints <RELEASE_NAME>-metastore

Success criteria

The output lists the metastore pod address. Any client supporting the metastore Thrift protocol reaches it at the same address.

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. Rendering fails: postgres.enabled=true cannot be combined with TDP-Settings.externalDatabase.enabled=true. Cause: Embedded PostgreSQL and external database hooks enabled at the same time. What to do: With an external database, set postgres.enabled: false (scenario 2).
  2. PostgreSQL did not become ready in time. Cause: The check-db-ready Job could not reach PostgreSQL at postgres.external.host and postgres.external.port. What to do: Check the PostgreSQL Service name and namespace in the address (scenario 2).
  3. create-db Job failed. Cause: The administration Secret does not exist in the Hive Metastore namespace, lacks the postgres-password key, or the password does not match. What to do: Fix the cause and run the same helm upgrade --install: it replaces the failed Job.
  4. Metastore pod does not start with an external database. Cause: External database without hooks: the chart creates neither the database nor the <RELEASE_NAME>-hive-database Secret. What to do: Enable hooks, or create the database and Secret before installing (Security - Hive Metastore).
  5. Connections exhausted in shared PostgreSQL. Cause: PostgreSQL max_connections cannot accommodate the metastore pools and other clients of the same instance. What to do: Increase max_connections in PostgreSQL before installing the metastore (scenario 2), using the formula on the configuration page.
  6. S3 access denied. Cause: Missing bucket, wrong endpoint or wrong S3 keys. With Ozone security disabled, the S3 Gateway accepts any nonempty key pair. What to do: Check the bucket, endpoint and keys Secret (scenario 3).
  7. Empty Service endpoints. Cause: The metastore pod is not ready, and consumers cannot reach the Thrift address. What to do: The endpoints of <RELEASE_NAME>-metastore must list the metastore pod. Start with the logs.

Next steps​