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.
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
- 1 · First contact
- 2 · Size resources
- 3 · Shared PostgreSQL
- 4 · Warehouse in Ozone
- 5 · Temporary password
- 6 · Connect the consumers
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.
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.
metastore.type: file: the <RELEASE_NAME>-hive-warehouse-pvc volume, mounted at the metastore.file.warehouseDir directory.
Internal <RELEASE_NAME>-metastore Service, on the metastore.port port, without Ingress. Replicas in metastore.replicas.
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
- 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.
- 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) - 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) - 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) - 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) - 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)
Check the TDP license
The chart requires a valid TDP license installed in the cluster.
kubectl get platformlicenses -A
Success when
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:
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
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.
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
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:
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.
kubectl -n <NAMESPACE> port-forward svc/<RELEASE_NAME>-metastore 9083:9083
Success when
Inside the cluster, clients use the Thrift address from scenario 6.
Replicas, connection pools, PostgreSQL limit and JVM memory.
Hive Metastore runs in pods, the metastore replicas, which respond to clients and store the metadata in PostgreSQL. Sizing Hive Metastore means adjusting those pods: how many replicas there are, how many connections each can open in PostgreSQL, and how much memory the pod and the JVM receive.
The catalog has grown: more tables, more partitions and more clients querying at the same time.
With the defaults, the chart already keeps the three things consistent with each other. The number of replicas is the one in metastore.replicas and only changes when you change that value. The connection limit of the embedded PostgreSQL accommodates the pools with the defaults, and the chart checks that arithmetic at render time. The chart computes the JVM heap on its own, as a percentage of the pod's memory limit: when you raise the limit, the heap follows. You are the one who adjusts them, when the catalog calls for more replicas, a larger pool, or more memory.
Replicas and pool go together. Each replica opens several JDBC connection pools, sets of connections that stay open with the database and are reused (Hive 4 uses HikariCP for this), and PostgreSQL must accommodate all of them plus the other clients of the same database.
Replicas in metastore.replicas. Each pool's maximum in metastore.connectionPool.maxPoolSize and minimum idle connections in metastore.connectionPool.minPoolSize.
Connection limit in postgres.internal.maxConnections, data volume in postgres.internal.pvcSize and other settings in postgres.internal.
Requests and limits in metastore.resources. JVM heap as a percentage of the memory limit (metastore.jvm.maxRAMPercentage), unless metastore.jvm.heapSize sets a fixed value.
The metastore replicas on the same PostgreSQL
- 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.
- 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) - 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) - 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) - 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) - 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)
The connection calculation
Each replica opens these pools. The peak is their sum, and PostgreSQL max_connections must accommodate it across all replicas, plus the other clients:
objectstore, txn, mutex .............. até maxPoolSize cada
objectstore-secondary ................ 2
compactor (+ objectstore-compactor) .. 5 (+5)
pico por réplica ≈ 3 × maxPoolSize + 15 (maxPoolSize 150 → 465)
max_connections ≥ (3 × metastore.connectionPool.maxPoolSize + 15) × metastore.replicas + outros clientes
With embedded PostgreSQL, the chart checks this calculation during rendering and fails when it exceeds postgres.internal.maxConnections: reduce the pool or replicas, or increase the limit. metastore.replicas is also included in this check. With external PostgreSQL, the chart cannot check it, and the limit is adjusted in PostgreSQL itself (scenario 3).
minPoolSize keeps each pool elastic: an idle replica keeps few connections open, instead of opening all pools up to their maximum at startup. There is no initialPoolSize: HikariCP does not have this setting, and Hive 4 ignores datanucleus.connectionPool.initialPoolSize and datanucleus.connectionPool.minPoolSize.
The values file
Only settings that differ from the defaults go in the file. The rest still comes from the chart.
1tdp-hive-metastore:2metastore:3 replicas: 14 connectionPool:5 maxPoolSize: 1506 minPoolSize: 10
Everything belonging to Hive Metastore goes under the subchart key. Without this prefix, Helm does not apply the block.
- Chart prefix (linha 1). Everything belonging to Hive Metastore goes under the subchart key. Without this prefix, Helm does not apply the block.
- Replicas (linha 3). The number of metastore replicas. Included in the connection calculation and rendering check.
- maxPoolSize (linha 5). Becomes datanucleus.connectionPool.maxPoolSize: the maximum of each objectstore, txn and mutex pool.
- minPoolSize (linha 6). Becomes hikaricp.minimumIdle: each pool's minimum idle connections.
1tdp-hive-metastore:2metastore:3 resources:4 requests: { cpu: "1", memory: 3Gi }5 limits: { cpu: "2", memory: 4Gi }6 jvm:7 heapSize: ""8 maxRAMPercentage: 759 extraOpts: ""
What Kubernetes reserves for the metastore pod.
- requests (linha 4). What Kubernetes reserves for the metastore pod.
- limits (linha 5). The pod's maximum. The heap percentage is calculated from the memory limit.
- heapSize (linha 7). A value such as 3g fixes -Xmx and overrides the percentage.
- maxRAMPercentage (linha 8). Used when heapSize is empty: the heap is this percentage of the container's memory limit.
- extraOpts (linha 9). Options appended to the JVM options.
1tdp-hive-metastore:2postgres:3 enabled: true4 internal:5 image: "registry.tecnisys.com.br/community/images/postgres:15"6 pvcSize: 1Gi7 maxConnections: 5008 sharedBuffers: 512MB9 effectiveCacheSize: 1.2GB10 maintenanceWorkMem: 128MB11 workMem: 32MB12 walBuffers: 16MB
The default. These parameters only apply with embedded PostgreSQL enabled.
- Embedded (linha 3). The default. These parameters only apply with embedded PostgreSQL enabled.
- Image (linha 5). The official PostgreSQL image, which accepts arguments such as -c max_connections=.
- Volume (linha 6). The PostgreSQL data PVC size.
- maxConnections (linha 7). Embedded PostgreSQL max_connections. Rendering fails if the connection calculation exceeds this value.
- Settings (linha 8). Passed to PostgreSQL as -c arguments.
Write the values file
Combine the blocks above, adjusted to your catalog, in a single file.
If you already have a Hive Metastore values file, add the blocks to it.
Apply to the release
The same command installs and upgrades.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-hive-metastore \
--version 3.0.3 -n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
The metastore Deployment uses the Recreate strategy: during upgrades, the old pod stops before the new one starts.
Success when
kubectl -n <NAMESPACE> get pods
kubectl -n <NAMESPACE> exec deployment/<RELEASE_NAME>-postgres -- psql -U hive -d hive -c "SHOW max_connections;"
kubectl -n <NAMESPACE> exec deployment/<RELEASE_NAME>-postgres -- psql -U hive -d hive -c "SELECT count(*) FROM pg_stat_activity;"
The metastore pods reach Running. With embedded PostgreSQL, the connection limit matches the file and active connections stay below it.
If Helm refuses to render
The connection pools can exceed postgres.internal.maxConnections message shows the calculation that exceeded the limit. See When something goes wrong.
Replace the embedded database with an external instance, such as the one from tdp-postgresql.
In a shared environment, the catalog database is in external PostgreSQL, such as the one from the tdp-postgresql chart, instead of the embedded instance. Disable embedded PostgreSQL and enable the chart's database hooks, Jobs that Helm runs before installation and before each upgrade: they check whether PostgreSQL responds, create the database and hive user with a generated password and store the credentials in the <RELEASE_NAME>-hive-database Secret. The connection limit is then adjusted in external PostgreSQL, which the chart cannot check.
Embedded PostgreSQL enabled and TDP-Settings.externalDatabase.enabled: false. Both cannot be enabled together: rendering fails.
External PostgreSQL reachable from the namespace, with max_connections increased for the metastore, to 400 to 500 (the tdp-postgresql default is 100), and the Secret containing the administrator password (key postgres-password) in the Hive Metastore namespace.
The metastore on the shared PostgreSQL
- 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.
- 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) - 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) - Database credentials. Created by the create-db Job, with a generated 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) - External database hooks. Before installation and each upgrade, one Job checks whether PostgreSQL responds and another creates the database and hive user and writes the credentials Secret. Chart default:
off. (TDP-Settings.externalDatabase.enabled) - Administrator password. The PostgreSQL administrator password, in the postgres-password key, read by the database Jobs in the Hive Metastore namespace. Chart default:
tdp-postgresql-auth. (TDP-Settings.externalDatabase.externalSecret.releaseName) - External PostgreSQL. A shared instance, such as the one from the tdp-postgresql chart. Adjust the connection limit there: the Hive Metastore chart does not check the calculation. (
tdp-hive-metastore.postgres.external.host) - 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)
The values file, the increase to max_connections in tdp-postgresql, the procedure and verification are in scenario 2 of Integrations - Hive Metastore. Who creates the credentials Secret in each mode, and how to create it yourself without hooks, is in Security - Hive Metastore.
Store table data in an S3 bucket instead of the local volume.
The lakehouse charts (tdp-spark, tdp-iceberg, tdp-deltalake and tdp-trino) expect the warehouse in S3, rather than on the metastore's local volume. With metastore.type: s3, the metastore registers table data in a bucket of the tdp-ozone S3 Gateway, Ozone's S3-compatible interface, and the local warehouse volume is no longer created.
metastore.type: file: the warehouse on the <RELEASE_NAME>-hive-warehouse-pvc volume.
The S3 Gateway endpoint in metastore.s3.endpoint, the warehouse bucket created before installation and the S3 keys in a Secret.
The warehouse in an Ozone bucket
- 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.
- 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) - 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) - 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) - 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) - S3 keys. The chart creates <RELEASE_NAME>-hive-s3 from metastore.s3.accessKey and metastore.s3.secretKey, or reads the Secret named in metastore.s3.existingSecret. (
tdp-hive-metastore.metastore.s3.existingSecret) - Warehouse in S3. Table data is stored in a bucket at the S3 endpoint, created before installation. The local warehouse volume is no longer created. Chart default:
metastore.type: file (volume local). (tdp-hive-metastore.metastore.type: s3)
The values file, bucket and keys Secret creation, procedure and verification are in scenario 3 of Integrations - Hive Metastore.
Where the database credentials and S3 keys are stored.
By default, the database user is hive with the temporary password ChangeMe!T3c, the same default password as the TDP charts. Before using the metastore for anything beyond testing, set your own in tdp-hive-metastore.postgres.password. Credentials never appear in the ConfigMap, Deployment specification, process command line or logs: they reach the pod through Secrets.
User, password and database in the <RELEASE_NAME>-hive-database Secret, created by the chart with embedded PostgreSQL and by hooks with external PostgreSQL.
With metastore.type: s3, in the <RELEASE_NAME>-hive-s3 Secret, or in your own Secret named in metastore.s3.existingSecret.
Password changes, the Secret for each database mode, S3 keys and database verification are in Security - Hive Metastore.
The address that Trino, Spark, Iceberg and Delta Lake receive.
The metastore is running and you want Trino, Spark and the Iceberg and Delta Lake maintenance jobs to register and find tables in it. Each consumer receives this release's Service Thrift address in its own values file. The Spark, Iceberg and Delta Lake chart defaults point to the tdp-hive-metastore release in the tdp namespace. With another release name or namespace, the address changes. In Trino, the address goes in the catalog you declare.
Nothing changes: each consumer receives the Thrift address in its own values file.
The Thrift address of the <RELEASE_NAME>-metastore Service, on the metastore.port port.
The consumers and the metastore Service
- 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.
- 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) - 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) - 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) - 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) - S3 keys. The chart creates <RELEASE_NAME>-hive-s3 from metastore.s3.accessKey and metastore.s3.secretKey, or reads the Secret named in metastore.s3.existingSecret. (
tdp-hive-metastore.metastore.s3.existingSecret) - Warehouse in S3. Table data is stored in a bucket at the S3 endpoint, created before installation. The local warehouse volume is no longer created. Chart default:
metastore.type: file (volume local). (tdp-hive-metastore.metastore.type: s3)
The address inside the cluster
thrift://<RELEASE_NAME>-metastore.<NAMESPACE>.svc.cluster.local:9083
Check that the address responds
The Service endpoints list the metastore pod.
kubectl -n <NAMESPACE> get endpoints <RELEASE_NAME>-metastore
Success when
Where each consumer receives the address
| Consumer | Where the address goes | Page |
|---|---|---|
| Trino | hive.metastore.uri, in the definition of the hive and iceberg catalogs (with iceberg.catalog.type=hive_metastore) | Integrations - Trino |
| Spark | tdp-spark.iceberg.catalog.uri. For Delta tables, tdp-spark.deltaLake.metastoreUri | Integrations - Spark |
| Iceberg | spark.sql.catalog.iceberg.uri, in maintenance.spark.config | Integrations - Iceberg |
| Delta Lake | spark.hadoop.hive.metastore.uris, in maintenance.spark.config | Integrations - Delta Lake |
The values file block for each consumer is on its integration page, in the table above. The metastore side is in Integrations - Hive Metastore: how the metastore is accessed and the address check in scenario 1, the shared PostgreSQL in scenario 2, the warehouse in Ozone in scenario 3, and the consumers in scenario 4.
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.
- 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).
- 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.
- 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).
- 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).
- 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).
- 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).
- 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.
- 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.
- Volume permission error. Cause: Permissions on the persistent volume containing the metastore data. What to do: Check the PV permissions and namespace events.
- 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
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
| Parameter | Description | Chart default |
|---|---|---|
tdp-hive-metastore.enabledGeneral | Enables Hive Metastore deployment | true |
tdp-hive-metastore.metastore.imageGeneral | Metastore image | hive-metastore:4.0.0-3 |
tdp-hive-metastore.imagePullSecretsGeneral | Image pull Secrets | tdp-registry |
tdp-hive-metastore.metastore.portGeneral | Metastore and Service Thrift port | 9083 |
tdp-hive-metastore.metastore.replicasGeneral | Metastore replicas. Included in the pool rendering check | 1 |
tdp-hive-metastore.metastore.minThreadsGeneral | Thrift server minimum threads | 20 |
tdp-hive-metastore.metastore.maxThreadsGeneral | Thrift server maximum threads | 200 |
tdp-hive-metastore.postgres.enabledDatabase | Uses embedded PostgreSQL | true |
tdp-hive-metastore.postgres.databaseDatabase | Database name | hive |
tdp-hive-metastore.postgres.usernameDatabase | Database user | hive |
tdp-hive-metastore.postgres.passwordDatabase | Database user password in embedded PostgreSQL (temporary) | ChangeMe!T3c |
tdp-hive-metastore.postgres.internal.pvcSizeDatabase | Embedded PostgreSQL volume size | 1Gi |
tdp-hive-metastore.postgres.internal.maxConnectionsDatabase | Embedded PostgreSQL max_connections. Rendering fails when (3 × maxPoolSize + 15) × replicas exceeds this value | 500 |
tdp-hive-metastore.postgres.internal.sharedBuffersDatabase | Embedded PostgreSQL shared_buffers | 512MB |
tdp-hive-metastore.postgres.internal.effectiveCacheSizeDatabase | Embedded PostgreSQL effective_cache_size | 1.2GB |
tdp-hive-metastore.postgres.internal.maintenanceWorkMemDatabase | Embedded PostgreSQL maintenance_work_mem | 128MB |
tdp-hive-metastore.postgres.internal.workMemDatabase | Embedded PostgreSQL work_mem | 32MB |
tdp-hive-metastore.postgres.internal.walBuffersDatabase | Embedded PostgreSQL wal_buffers | 16MB |
tdp-hive-metastore.postgres.external.hostDatabase | External PostgreSQL host | <POSTGRESQL_HOST> |
tdp-hive-metastore.postgres.external.portDatabase | External PostgreSQL port | 5432 |
TDP-Settings.externalDatabase.enabledDatabase | Runs the database hooks for external PostgreSQL | false |
TDP-Settings.externalDatabase.recreateDatabase | Deletes and recreates the database and user on each deployment | false |
TDP-Settings.externalDatabase.externalSecret.releaseNameDatabase | Name of the Secret containing the PostgreSQL administrator password (key postgres-password) | tdp-postgresql-auth |
tdp-hive-metastore.metastore.typeWarehouse | Warehouse type: file or s3 | file |
tdp-hive-metastore.metastore.file.warehouseDirWarehouse | Warehouse directory in file mode | /opt/hive/warehouse |
tdp-hive-metastore.metastore.s3.warehouseDirWarehouse | Warehouse path in s3 mode | s3a://warehouse/hive |
tdp-hive-metastore.metastore.s3.bucketWarehouse | Warehouse bucket | warehouse |
tdp-hive-metastore.metastore.s3.endpointWarehouse | S3 endpoint | http://<S3_SERVICE>.<NAMESPACE>.svc.cluster.local:9878 |
tdp-hive-metastore.metastore.s3.existingSecretWarehouse | Existing Secret containing S3 keys. When empty, the chart creates <RELEASE_NAME>-hive-s3 | "" |
tdp-hive-metastore.metastore.s3.existingSecretAccessKeyKeyWarehouse | Secret key containing the access key | access-key |
tdp-hive-metastore.metastore.s3.existingSecretSecretKeyKeyWarehouse | Secret key containing the secret key | secret-key |
tdp-hive-metastore.metastore.s3.pathStyleAccessWarehouse | Path-style S3 access | true |
tdp-hive-metastore.metastore.s3.regionWarehouse | S3 region | us-east-1 |
tdp-hive-metastore.metastore.connectionPool.maxPoolSizeResources | Maximum of each objectstore, txn and mutex pool (datanucleus.connectionPool.maxPoolSize) | 150 |
tdp-hive-metastore.metastore.connectionPool.minPoolSizeResources | Minimum idle connections per pool (hikaricp.minimumIdle) | 10 |
tdp-hive-metastore.metastore.resources.requests.cpuResources | CPU reserved for the metastore | 1 |
tdp-hive-metastore.metastore.resources.requests.memoryResources | Memory reserved for the metastore | 3Gi |
tdp-hive-metastore.metastore.resources.limits.cpuResources | Metastore CPU limit | 2 |
tdp-hive-metastore.metastore.resources.limits.memoryResources | Metastore memory limit | 4Gi |
tdp-hive-metastore.metastore.jvm.heapSizeResources | Fixed JVM heap (-Xmx). Overrides the percentage | "" |
tdp-hive-metastore.metastore.jvm.maxRAMPercentageResources | Percentage of resources.limits.memory used as heap when heapSize is empty | 75 |
tdp-hive-metastore.metastore.jvm.extraOptsResources | Options appended to the JVM | "" |
For the complete parameter list, run helm show values for the installed chart version.
Next steps
Integrations
Integrations - Hive Metastore
Shared PostgreSQL, warehouse in Ozone and catalog consumers.