Skip to main content
Version 3.0

A metadata catalog
for the lakehouse tables.

Six common scenarios, from the first installation to the shared database and the warehouse in Ozone. Each one covers: what the chart already provides, what changes in the cluster, the values file commented line by line, and a step-by-step with verification.

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

The tdp-hive-metastore chart starts Apache Hive Metastore in the namespace, with embedded PostgreSQL for metadata and a warehouse on a local volume. Clients, such as Trino and Spark, reach it through the internal Service's Thrift address. Where the database and table data are stored is your choice, and each scenario below covers one of these decisions.

Your environment

If you fill in your environment details here, the examples and commands on this page use what you entered. The namespace, the release name, and the values file are your choices, not the chart's.

Scenarios​

Install with the chart defaults, check the Service and reach the Thrift address.

This tab installs Hive Metastore with the chart defaults, without a values file, checks the Service, and opens a tunnel from your machine to it. The metastore stores table metadata (databases, tables, partitions and file locations) and responds to clients through Thrift. The table files are in the warehouse.

You want to see Hive Metastore responding before deciding where the database and data will be stored. With the defaults, the metastore, embedded PostgreSQL dedicated to the catalog and the warehouse on a volume in the namespace itself start. The other scenarios start from this state.

Database

Embedded PostgreSQL (postgres.enabled: true) at the <RELEASE_NAME>-postgres Service, with the hive user and a temporary password, which you change in scenario 5.

Warehouse

metastore.type: file: the <RELEASE_NAME>-hive-warehouse-pvc volume, mounted at the metastore.file.warehouseDir directory.

Access

Internal <RELEASE_NAME>-metastore Service, on the metastore.port port, without Ingress. Replicas in metastore.replicas.

Before starting

Kubernetes 1.32+, Red Hat OpenShift 4.19+ or Rancher Manager 2.10.x+, Helm 3.2.0+, a valid TDP license in the cluster and the tdp-registry pull Secret in the release namespace.

What starts in the namespace with the chart defaults

namespace <NAMESPACE>ThriftJDBCTrino, Spark and othersThrift clientsService<RELEASE_NAME>-metastoreHive Metastoresingle replica · pools JDBCSecret<RELEASE_NAME>-hive-databasePostgreSQL<RELEASE_NAME>-postgresWarehouse PVC<RELEASE_NAME>-hive-warehouse-pvc
  1. Catalog clients. Trino, Spark, Iceberg and Delta Lake maintenance jobs and other clients read and write metadata through the Service's Thrift address. Each configures this address in its own chart.
  2. Metastore Service. The internal Hive Metastore address: thrift://<RELEASE_NAME>-metastore.<NAMESPACE>.svc.cluster.local, on the metastore.port port. There is no Ingress: clients are inside the cluster or use port-forward. Chart default: internal, on the metastore.port port. (tdp-hive-metastore.metastore.port)
  3. Hive Metastore. Responds to clients with database, table, partition and location metadata stored in PostgreSQL. Each replica opens its own JDBC connection pools, each up to connectionPool.maxPoolSize. Chart default: replicas in metastore.replicas · requests and limits in metastore.resources · heap in metastore.jvm. (tdp-hive-metastore.metastore.replicas · tdp-hive-metastore.metastore.connectionPool)
  4. Database credentials. Created by the chart from postgres.database, postgres.username and postgres.password. The pod reads the user and password from this Secret; they do not appear in the ConfigMap. Chart default: created by the chart (embedded PostgreSQL). (tdp-hive-metastore.postgres.password)
  5. Embedded PostgreSQL. Dedicated to the catalog, with data on its own volume (<RELEASE_NAME>-postgres-pvc). Tuning parameters are passed as PostgreSQL -c arguments. Chart default: on · connection limit in postgres.internal.maxConnections. (tdp-hive-metastore.postgres.enabled · tdp-hive-metastore.postgres.internal)
  6. Warehouse on a local volume. The table data volume, mounted in the metastore pod at the metastore.file.warehouseDir directory. Chart default: metastore.type: file. (tdp-hive-metastore.metastore.type)
What starts in the namespace with the chart defaults. Click an element to see what it is and its corresponding default.

Check the TDP license

The chart requires a valid TDP license installed in the cluster.

Terminal input
kubectl get platformlicenses -A

Success when

The license appears in the list. If it does not, install it before continuing (Licensing Configuration).

Create the pull Secret in the namespace

Hive Metastore images come from a registry project that requires login.

Create the namespace, if it does not exist yet, and the tdp-registry Secret with your Tecnisys registry credentials:

Terminal input
kubectl create namespace <NAMESPACE>
kubectl -n <NAMESPACE> create secret docker-registry tdp-registry \
--docker-server=registry.tecnisys.com.br \
--docker-username=<REGISTRY_USERNAME> --docker-password=<REGISTRY_CLI_SECRET>

Replace the placeholders with the registry username and token. They stay only in the command. More details in Prerequisites.

Success when

Terminal input
kubectl -n <NAMESPACE> get secret tdp-registry

The Secret appears in the namespace. Without it, the metastore pod stays in ImagePullBackOff.

Install with defaults

Without a values file, the chart starts exactly as in the figure above.

Terminal input
helm install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-hive-metastore \
--version 3.0.3 -n <NAMESPACE>

Without --version, Helm installs the latest published chart version. The chart version for this documentation is 3.0.3.

Success when

Terminal input
kubectl -n <NAMESPACE> get pods,svc | grep <RELEASE_NAME>
kubectl -n <NAMESPACE> get endpoints <RELEASE_NAME>-metastore

The <RELEASE_NAME>-metastore and <RELEASE_NAME>-postgres Services appear, and the <RELEASE_NAME>-metastore endpoints list the metastore pod.

If a pod does not start

The namespace events, in time order, show the reason:

Terminal input
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp
kubectl -n <NAMESPACE> logs deployment/<RELEASE_NAME>-metastore

Then look up the message in When something goes wrong.

Test from your machineOpcional

kubectl opens a tunnel from your machine to the metastore Service.

Terminal input
kubectl -n <NAMESPACE> port-forward svc/<RELEASE_NAME>-metastore 9083:9083

Success when

The command keeps running, forwarding the local port to the metastore Service.

Inside the cluster, clients use the Thrift address from scenario 6.

When something goes wrong​

Troubleshooting

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

  1. ImagePullBackOff on the metastore pod. Cause: The tdp-registry Secret is missing from the release namespace. What to do: Create the pull Secret with your registry credentials (scenario 1).
  2. license check failed. Cause: The TDP license is missing or invalid in the cluster. What to do: Install or renew the TDP license and check it with kubectl get platformlicenses -A.
  3. Rendering fails: connection pools can exceed postgres.internal.maxConnections. Cause: With embedded PostgreSQL, the calculation (3 × maxPoolSize + 15) × replicas exceeds postgres.internal.maxConnections. What to do: Reduce metastore.connectionPool.maxPoolSize or metastore.replicas, or increase postgres.internal.maxConnections (scenario 2).
  4. Rendering fails: postgres.enabled=true cannot be combined with TDP-Settings.externalDatabase.enabled=true. Cause: Embedded PostgreSQL and external database hooks are enabled at the same time. What to do: Disable one of them: for an external database, postgres.enabled: false (scenario 3).
  5. PostgreSQL connections exhausted. Cause: PostgreSQL max_connections cannot accommodate the pools of all replicas and the other clients. External PostgreSQL needs a max_connections well above the default of the tdp-postgresql. What to do: Adjust the limit using the formula in scenario 2. In the tdp-postgresql chart, increase max_connections before installing the metastore (scenario 3).
  6. Authentication error with ${env.DB_PASSWORD}. Cause: The database environment variable is missing from the pod: the <RELEASE_NAME>-hive-database Secret is missing or lacks the username, password and database keys. What to do: Check the Secret. With external PostgreSQL without hooks, create it before installing (Security - Hive Metastore).
  7. PostgreSQL did not become ready in time. Cause: The check-db-ready Job could not reach external PostgreSQL at postgres.external.host and postgres.external.port. What to do: Check the address and whether the PostgreSQL Service is reachable from the metastore namespace.
  8. create-db Job failed. Cause: The Job that creates the database in external PostgreSQL ended with an error: PostgreSQL admin Secret, address or password. What to do: Read the log, fix the cause and run the same helm upgrade --install: it replaces the failed Job.
  9. Volume permission error. Cause: Permissions on the persistent volume containing the metastore data. What to do: Check the PV permissions and namespace events.
  10. Another problem. Cause: Start with the metastore logs and namespace events. What to do: The endpoints of <RELEASE_NAME>-metastore must list the metastore pod.

Uninstall​

Terminal input
helm uninstall <RELEASE_NAME> -n <NAMESPACE>

After helm uninstall, a post-delete Job removes the <RELEASE_NAME>-hive-database Secret and the ServiceAccount, Role and RoleBinding used by the database Jobs. The removal order for all components and the platform is in Uninstallation.

All parameters​

Filter by name or group. The chart prefix is already filled in. Keys without a prefix are at the values file root.

42 of 42 parameters

ParameterDescriptionChart default
tdp-hive-metastore.enabledGeneralEnables Hive Metastore deploymenttrue
tdp-hive-metastore.metastore.imageGeneralMetastore imagehive-metastore:4.0.0-3
tdp-hive-metastore.imagePullSecretsGeneralImage pull Secretstdp-registry
tdp-hive-metastore.metastore.portGeneralMetastore and Service Thrift port9083
tdp-hive-metastore.metastore.replicasGeneralMetastore replicas. Included in the pool rendering check1
tdp-hive-metastore.metastore.minThreadsGeneralThrift server minimum threads20
tdp-hive-metastore.metastore.maxThreadsGeneralThrift server maximum threads200
tdp-hive-metastore.postgres.enabledDatabaseUses embedded PostgreSQLtrue
tdp-hive-metastore.postgres.databaseDatabaseDatabase namehive
tdp-hive-metastore.postgres.usernameDatabaseDatabase userhive
tdp-hive-metastore.postgres.passwordDatabaseDatabase user password in embedded PostgreSQL (temporary)ChangeMe!T3c
tdp-hive-metastore.postgres.internal.pvcSizeDatabaseEmbedded PostgreSQL volume size1Gi
tdp-hive-metastore.postgres.internal.maxConnectionsDatabaseEmbedded PostgreSQL max_connections. Rendering fails when (3 × maxPoolSize + 15) × replicas exceeds this value500
tdp-hive-metastore.postgres.internal.sharedBuffersDatabaseEmbedded PostgreSQL shared_buffers512MB
tdp-hive-metastore.postgres.internal.effectiveCacheSizeDatabaseEmbedded PostgreSQL effective_cache_size1.2GB
tdp-hive-metastore.postgres.internal.maintenanceWorkMemDatabaseEmbedded PostgreSQL maintenance_work_mem128MB
tdp-hive-metastore.postgres.internal.workMemDatabaseEmbedded PostgreSQL work_mem32MB
tdp-hive-metastore.postgres.internal.walBuffersDatabaseEmbedded PostgreSQL wal_buffers16MB
tdp-hive-metastore.postgres.external.hostDatabaseExternal PostgreSQL host<POSTGRESQL_HOST>
tdp-hive-metastore.postgres.external.portDatabaseExternal PostgreSQL port5432
TDP-Settings.externalDatabase.enabledDatabaseRuns the database hooks for external PostgreSQLfalse
TDP-Settings.externalDatabase.recreateDatabaseDeletes and recreates the database and user on each deploymentfalse
TDP-Settings.externalDatabase.externalSecret.releaseNameDatabaseName of the Secret containing the PostgreSQL administrator password (key postgres-password)tdp-postgresql-auth
tdp-hive-metastore.metastore.typeWarehouseWarehouse type: file or s3file
tdp-hive-metastore.metastore.file.warehouseDirWarehouseWarehouse directory in file mode/opt/hive/warehouse
tdp-hive-metastore.metastore.s3.warehouseDirWarehouseWarehouse path in s3 modes3a://warehouse/hive
tdp-hive-metastore.metastore.s3.bucketWarehouseWarehouse bucketwarehouse
tdp-hive-metastore.metastore.s3.endpointWarehouseS3 endpointhttp://<S3_SERVICE>.<NAMESPACE>.svc.cluster.local:9878
tdp-hive-metastore.metastore.s3.existingSecretWarehouseExisting Secret containing S3 keys. When empty, the chart creates <RELEASE_NAME>-hive-s3""
tdp-hive-metastore.metastore.s3.existingSecretAccessKeyKeyWarehouseSecret key containing the access keyaccess-key
tdp-hive-metastore.metastore.s3.existingSecretSecretKeyKeyWarehouseSecret key containing the secret keysecret-key
tdp-hive-metastore.metastore.s3.pathStyleAccessWarehousePath-style S3 accesstrue
tdp-hive-metastore.metastore.s3.regionWarehouseS3 regionus-east-1
tdp-hive-metastore.metastore.connectionPool.maxPoolSizeResourcesMaximum of each objectstore, txn and mutex pool (datanucleus.connectionPool.maxPoolSize)150
tdp-hive-metastore.metastore.connectionPool.minPoolSizeResourcesMinimum idle connections per pool (hikaricp.minimumIdle)10
tdp-hive-metastore.metastore.resources.requests.cpuResourcesCPU reserved for the metastore1
tdp-hive-metastore.metastore.resources.requests.memoryResourcesMemory reserved for the metastore3Gi
tdp-hive-metastore.metastore.resources.limits.cpuResourcesMetastore CPU limit2
tdp-hive-metastore.metastore.resources.limits.memoryResourcesMetastore memory limit4Gi
tdp-hive-metastore.metastore.jvm.heapSizeResourcesFixed JVM heap (-Xmx). Overrides the percentage""
tdp-hive-metastore.metastore.jvm.maxRAMPercentageResourcesPercentage of resources.limits.memory used as heap when heapSize is empty75
tdp-hive-metastore.metastore.jvm.extraOptsResourcesOptions appended to the JVM""

For the complete parameter list, run helm show values for the installed chart version.

Next steps​