Delta tables in order,
with maintenance scheduled in the cluster.
Six common scenarios, from the first installation to the chart's own Spark cluster. 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-deltalake chart runs, in scheduled jobs (CronJobs), the maintenance of the lakehouse's Delta Lake tables: VACUUM, OPTIMIZE, OPTIMIZE ZORDER BY, and DESCRIBE HISTORY. Each job runs Spark in its own pod, finds the tables in the Hive Metastore, and reads the files from S3 storage. For the format and the transaction log, see Delta Lake - Concepts.
Your environment
If you fill in your environment details here, the examples and commands on the 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 · Test without the lakehouse
- 3 · What to maintain and when
- 4 · Image and resources
- 5 · Point to the lakehouse
- 6 · Spark cluster
Install with the defaults, check the CronJobs, and run a job without waiting for the schedule.
This scenario installs the chart with the defaults, checks the maintenance jobs it creates, and runs one of them without waiting for the schedule. With the defaults, the chart creates two CronJobs: VACUUM, daily, which deletes the files that the transaction log no longer references, and OPTIMIZE, weekly, which compacts small files into larger ones. Each run processes all the Delta tables registered in the Hive Metastore.
The Hive Metastore and Ozone are already in the cluster, and you want the Delta tables to start receiving maintenance. The defaults expect the Hive Metastore and Ozone in the tdp namespace. If yours are in another namespace, also see scenario 5 before installing.
VACUUM and OPTIMIZE, with the schedules in maintenance.jobs.vacuum.schedule and maintenance.jobs.optimize.schedule. OPTIMIZE ZORDER BY and DESCRIBE HISTORY disabled.
Empty tables list in each job: all Delta tables registered in the Hive Metastore.
Addresses in maintenance.spark.config, pointing to the Hive Metastore and the Ozone S3 Gateway in the tdp namespace, with the warehouse in spark.sql.warehouse.dir.
Spark 4.0.2 with Delta Lake 4.0.1 and Scala 2.13. The subchart's Spark cluster is off and the jobs do not use it.
A valid TDP license, the tdp-registry pull Secret and the S3 keys Secret in the release namespace, and the Hive Metastore and Ozone with the warehouse.
A ConfigMap with the jobs' Spark configuration and a dedicated ServiceAccount, without permissions on the Kubernetes API.
What comes up in the namespace with the chart defaults
- Maintenance CronJobs. One CronJob per enabled job: VACUUM, OPTIMIZE. Each run is a pod with Spark, which processes the tables listed in tables or, with an empty list, all Delta tables in the Hive Metastore. The job logs one line per table and fails when any of them fails. Chart default:
VACUUM and OPTIMIZE enabled; OPTIMIZE ZORDER BY and DESCRIBE HISTORY disabled. (maintenance.enabled · maintenance.jobs) - Jobs ConfigMap. Holds the spark-defaults.conf, assembled from maintenance.spark.config, and the script each job runs. The keys you define are merged into the defaults. Chart default:
Hive Metastore and Ozone S3 in the tdp namespace. (maintenance.spark.config) - S3 keys Secret. Created by you before the deploy, in the release namespace. The jobs read the access key and the secret key from it. Chart default:
s3-credentials, with the access-key and secret-key keys. (maintenance.spark.s3Credentials) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. They apply to the jobs, to the self-test, and to the Spark subchart. Chart default:
tdp-registry. (global.imagePullSecrets) - ServiceAccount. Created by the chart for the job pods, with a Role that has no rules: the jobs do not call the Kubernetes API. Chart default:
deltalake-maintenance. (serviceAccount.name · rbac.rules) - Hive Metastore. Where the jobs look for the Delta tables, through the Thrift address in spark.hadoop.hive.metastore.uris. Chart default:
tdp-hive-metastore-metastore, in the tdp namespace. (maintenance.spark.config["spark.hadoop.hive.metastore.uris"]) - S3 storage. Where the table files live, in the spark.sql.warehouse.dir warehouse. The jobs reach it through S3A, with the keys from the Secret. Chart default:
tdp-ozone-s3g-rest, in the tdp namespace; warehouse s3a://warehouse/delta. (maintenance.spark.config["spark.hadoop.fs.s3a.endpoint"])
Check the TDP license
The chart requires a valid TDP license installed in the cluster.
kubectl get platformlicenses -A
It worked when
tdp-license chart before continuing, as in License Configuration.Create the pull Secret in the namespace
The jobs' image comes from the Tecnisys registry, which requires login.
kubectl -n <NAMESPACE> create secret docker-registry tdp-registry \
--docker-server=registry.tecnisys.com.br \
--docker-username=<REGISTRY_USERNAME> --docker-password=<REGISTRY_CLI_SECRET>
The user and the token are your registry ones. How to obtain them is in Prerequisites. The Secret must exist in the namespace before the installation: if the namespace does not exist yet, create it first with kubectl create namespace <NAMESPACE>.
It worked when
kubectl -n <NAMESPACE> get secret tdp-registry
Create the S3 keys Secret
The jobs read the access key and the secret key from this Secret, in the release namespace.
kubectl -n <NAMESPACE> create secret generic s3-credentials \
--from-literal=access-key='<ACCESS_KEY>' \
--from-literal=secret-key='<SECRET_KEY>'
With Ozone security off, which is its default, any non-empty pair works. With it on, the jobs use the keys that Ozone issues: see Security - Delta Lake.
Install the chart
Without a values file, the chart comes up exactly as in the figure above.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-deltalake \
--version 3.0.3 \
-n <NAMESPACE>
Without --version, Helm installs the latest published version of the chart. This documentation's version is 3.0.3. With your own settings, create your values file and add -f <VALUES_FILE>.
It worked when
kubectl -n <NAMESPACE> get cronjobs
The VACUUM and OPTIMIZE CronJobs appear, and the Helm output lists the enabled jobs with the schedules. The names derive from the release: <RELEASE_NAME>-tdp-deltalake-vacuum, or <RELEASE_NAME>-vacuum when the release name already contains tdp-deltalake. The same applies to optimize, optimize-zorder, and describe-history.
If the installation is refused or the pods do not start
A refusal with license check failed is the license; ImagePullBackOff is the pull Secret; CreateContainerConfigError is the S3 keys Secret. All three are in When something goes wrong.
Run a job now
A manual run, from the CronJob, without waiting for the schedule.
With the release named tdp-deltalake, as in the example below:
kubectl -n <NAMESPACE> create job --from=cronjob/tdp-deltalake-vacuum tdp-deltalake-vacuum-manual
kubectl -n <NAMESPACE> logs -f job/tdp-deltalake-vacuum-manual
It worked when
If the job ends with an error
The job continues with the other tables when one fails, and ends with an error listing the ones that failed. The FAILED line carries the table and the message. See When something goes wrong.
Validate Delta in the cluster with the self-test, without S3 or metastore.
This scenario installs only the self-test, a Job that creates a Delta table on the pod's own local disk, without S3 or metastore, and runs UPDATE, DELETE, time travel, VACUUM, and OPTIMIZE on it. The chart ships it disabled.
Before connecting the jobs to the metastore and S3, you want to confirm that the image and Delta Lake work in the cluster. Installed on its own, with maintenance off, the self-test does not create the CronJobs.
test.enabled: false: the self-test is not created.
A Job, which is removed automatically a few minutes after it finishes. It needs the license and the pull Secret from scenario 1. It does not need the S3 keys Secret.
The self-test, on the pod disk only
- Maintenance CronJobs. With maintenance.enabled: false, the chart creates neither the CronJobs nor the jobs ConfigMap. Chart default:
VACUUM and OPTIMIZE enabled; OPTIMIZE ZORDER BY and DESCRIBE HISTORY disabled. (maintenance.enabled · maintenance.jobs) - S3 keys Secret. Created by you before the deploy, in the release namespace. The jobs read the access key and the secret key from it. Chart default:
s3-credentials, with the access-key and secret-key keys. (maintenance.spark.s3Credentials) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. They apply to the jobs, to the self-test, and to the Spark subchart. Chart default:
tdp-registry. (global.imagePullSecrets) - ServiceAccount. Created by the chart for the job pods, with a Role that has no rules: the jobs do not call the Kubernetes API. Chart default:
deltalake-maintenance. (serviceAccount.name · rbac.rules) - Hive Metastore. Where the jobs look for the Delta tables, through the Thrift address in spark.hadoop.hive.metastore.uris. Chart default:
tdp-hive-metastore-metastore, in the tdp namespace. (maintenance.spark.config["spark.hadoop.hive.metastore.uris"]) - S3 storage. Where the table files live, in the spark.sql.warehouse.dir warehouse. The jobs reach it through S3A, with the keys from the Secret. Chart default:
tdp-ozone-s3g-rest, in the tdp namespace; warehouse s3a://warehouse/delta. (maintenance.spark.config["spark.hadoop.fs.s3a.endpoint"]) - Self-test. Creates a Delta table on the pod's local disk, without S3 or metastore, and runs UPDATE, DELETE, time travel, VACUUM, and OPTIMIZE on it. It is removed a few minutes after it finishes. Chart default:
off. (test.enabled)
Install with the self-test and without maintenance
The release now has only the self-test Job.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-deltalake \
--version 3.0.3 \
-n <NAMESPACE> --set test.enabled=true --set maintenance.enabled=false
Follow the Job log
The test prints each operation and the result.
kubectl -n <NAMESPACE> logs -f -l app.kubernetes.io/instance=<RELEASE_NAME>,component=test
It worked when
If the pod does not start
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp
ImagePullBackOff is the pull Secret. See When something goes wrong.
To enable maintenance after the test, follow scenario 1.
Schedules, tables, VACUUM retention, Z-ORDER, and table history.
This scenario chooses which maintenance jobs are enabled, on what schedule each one runs, and which tables it processes. With nothing in the values file, the chart already enables VACUUM and OPTIMIZE, each on its own schedule, over all the Delta tables in the metastore. OPTIMIZE ZORDER BY and DESCRIBE HISTORY come disabled. Each job is an entry in maintenance.jobs, with enabled, schedule (in cron format), and tables.
You want to adjust that: change the times, limit a job to a few tables, enable Z-ORDER compaction for tables you query by certain columns, or log the tables' history for auditing.
Deletes the files that the transaction log no longer references and that are older than maintenance.jobs.vacuum.retentionHours. Enabled. See VACUUM.
Compacts small files into larger ones. Enabled.
Compacts and clusters the data by the given columns. Disabled, and processes only the listed tables.
Logs the tables' history, for auditing. Disabled.
The four jobs, each with its own schedule
- Maintenance CronJobs. One CronJob per enabled job: VACUUM, OPTIMIZE, Z-ORDER, HISTORY. Each run is a pod with Spark, which processes the tables listed in tables or, with an empty list, all Delta tables in the Hive Metastore. The job logs one line per table and fails when any of them fails. Chart default:
VACUUM and OPTIMIZE enabled; OPTIMIZE ZORDER BY and DESCRIBE HISTORY disabled. (maintenance.enabled · maintenance.jobs) - Jobs ConfigMap. Holds the spark-defaults.conf, assembled from maintenance.spark.config, and the script each job runs. The keys you define are merged into the defaults. Chart default:
Hive Metastore and Ozone S3 in the tdp namespace. (maintenance.spark.config) - S3 keys Secret. Created by you before the deploy, in the release namespace. The jobs read the access key and the secret key from it. Chart default:
s3-credentials, with the access-key and secret-key keys. (maintenance.spark.s3Credentials) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. They apply to the jobs, to the self-test, and to the Spark subchart. Chart default:
tdp-registry. (global.imagePullSecrets) - ServiceAccount. Created by the chart for the job pods, with a Role that has no rules: the jobs do not call the Kubernetes API. Chart default:
deltalake-maintenance. (serviceAccount.name · rbac.rules) - Hive Metastore. Where the jobs look for the Delta tables, through the Thrift address in spark.hadoop.hive.metastore.uris. Chart default:
tdp-hive-metastore-metastore, in the tdp namespace. (maintenance.spark.config["spark.hadoop.hive.metastore.uris"]) - S3 storage. Where the table files live, in the spark.sql.warehouse.dir warehouse. The jobs reach it through S3A, with the keys from the Secret. Chart default:
tdp-ozone-s3g-rest, in the tdp namespace; warehouse s3a://warehouse/delta. (maintenance.spark.config["spark.hadoop.fs.s3a.endpoint"])
The jobs in the values file
This scenario has two blocks. The first shows the jobs as the chart ships them, commented line by line, for reference. The second is an example of a change, which enables Z-ORDER on a table. In your values file, only what departs from the default goes in, with each job only once: if you enable Z-ORDER and also change its schedule, both keys go in the same optimizeZOrder entry.
1maintenance:2enabled: true3jobs:4 vacuum:5 enabled: true6 schedule: "0 2 * * *" # daily at 2 AM7 retentionHours: 1688 tables: []910 optimize:11 enabled: true12 schedule: "0 3 * * 0" # Sundays at 3 AM13 tables: []1415 optimizeZOrder:16 enabled: false17 schedule: "0 1 * * 6" # Saturdays at 1 AM18 tables: []1920 describeHistory:21 enabled: false22 schedule: "0 6 * * *" # daily at 6 AM23 tables: []
Turns all the CronJobs on or off at once.
- maintenance.enabled (linha 2). Turns all the CronJobs on or off at once.
- schedule (linha 6). The schedule in cron format. If the previous run of the same job is still running, the new one is skipped.
- Retention (linha 7). Unreferenced files older than this number of hours are deleted. See the VACUUM retention, further below.
- tables (linha 8). Empty: all Delta tables in the Hive Metastore. With items: database.table or the table path (s3a://...).
- Z-ORDER (linha 15). Disabled. It needs the columns of each table, so it processes only the tables entries, in the format of the example below.
- DESCRIBE HISTORY (linha 20). Disabled. Logs each table's history in the job log.
Which tables each job processes
tables takes database.table, as the table is registered in the Hive Metastore, or the table path (s3a://...). With an empty list, the job processes all the Delta tables in the metastore. Z-ORDER is the exception: it processes only the listed tables, each with the columns in zOrderBy, and ignores an entry without columns. In all the jobs, a table that fails does not interrupt the others. The job logs one line per table and ends with an error if any of them fails.
The chart's example, with Z-ORDER on one table every Saturday:
1maintenance:2jobs:3 optimizeZOrder:4 enabled: true5 tables:6 - table: sales.orders7 zOrderBy: [customer_id, order_date]
The schedule stays the chart's, on Saturdays, as long as you do not set schedule.
- Enabled (linha 4). The schedule stays the chart's, on Saturdays, as long as you do not set schedule.
- table (linha 6). database.table or the table path.
- zOrderBy (linha 7). The columns the data is clustered by. An entry without columns is ignored.
The VACUUM retention
In production, keep retentionHours at the chart default or above. The files are deleted for good: below the retention, readers of old versions of the table and time travel to those versions stop working.
The chart turns off Delta Lake's own retention check (spark.databricks.delta.retentionDurationCheck.enabled in maintenance.spark.config), so a smaller value is accepted without an error.
Write the values file
Only the keys that change from the default.
If you already have a Delta Lake 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-deltalake \
--version 3.0.3 \
-n <NAMESPACE> \
-f <VALUES_FILE>
It worked when
kubectl -n <NAMESPACE> get cronjobs
Each enabled job has a CronJob, with the new schedule in the SCHEDULE column, and the Helm output lists the enabled jobs with the schedules.
CPU and memory for each run, the Spark image, and extra pull secrets.
This scenario adjusts each run's pod: the CPU and memory it receives, the image it starts from, and the pull secrets used to download it. Each run of a job is a pod that runs Spark inside itself, from the TDP Spark image, which already ships the Delta Lake and S3 jars: the jobs download nothing at runtime.
The chart already ships CPU and memory requests and limits in maintenance.spark.resources, the same for all the jobs. These values are fixed: the chart does not adjust them to the load, and when a run needs more, you are the one who changes them.
You want to give each pod more CPU or memory, change the image tag, or add a pull secret just for the jobs, when the image comes from a second registry.
The TDP Spark image, in maintenance.spark.image.repository and maintenance.spark.image.tag.
Requests and limits for each pod in maintenance.spark.resources (values in All parameters).
global.imagePullSecrets (tdp-registry), which applies to the jobs and to the Spark subchart, added to maintenance.spark.imagePullSecrets, empty.
1maintenance:2spark:3 image:4 repository: "registry.tecnisys.com.br/tdp/images/spark"5 tag: "4.0.2-3"6 imagePullSecrets:7 - <SECRET_NAME>8 resources:9 requests:10 cpu: 111 memory: 2Gi12 limits:13 cpu: 214 memory: 4Gi
The TDP Spark image, with the Delta Lake and S3 jars. The paths of those jars are in spark.driver.extraClassPath and spark.executor.extraClassPath, inside maintenance.spark.config, and follow the tag: when you change the tag, update them too.
- Job image (linha 3). The TDP Spark image, with the Delta Lake and S3 jars. The paths of those jars are in spark.driver.extraClassPath and spark.executor.extraClassPath, inside maintenance.spark.config, and follow the tag: when you change the tag, update them too.
- Extra pull secret (linha 6). Added to those in global.imagePullSecrets, without replacing them, and only for the jobs. Accepts names or {name: ...} entries.
- Resources (linha 8). Requests and limits for each run's pod. The example repeats the chart defaults. Replace them with the values your workload needs.
Apply to the release
The next run of each job already uses the new values.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-deltalake \
--version 3.0.3 \
-n <NAMESPACE> \
-f <VALUES_FILE>
It worked when
Run a job now, as in scenario 1, and check the run's pod:
kubectl -n <NAMESPACE> get pods -l component=maintenance,app.kubernetes.io/instance=<RELEASE_NAME>
The pod reaches Running and, afterwards, Completed.
Hive Metastore and Ozone in another namespace, and the S3 keys.
This scenario points the jobs to the Hive Metastore and Ozone of your environment. The chart defaults expect both in the tdp namespace, with the default release names. You only need to change this when yours are in another namespace or use another release name. The addresses live in maintenance.spark.config, which the chart writes to the jobs' spark-defaults.conf.
You have the lakehouse in another namespace, and the jobs need its addresses. If Ozone security is on, they also need the keys that Ozone issues, which come from a Secret.
Hive Metastore and Ozone S3 Gateway in the tdp namespace. Keys from the s3-credentials Secret.
The jobs connected to a lakehouse in another namespace
- Maintenance CronJobs. One CronJob per enabled job: VACUUM, OPTIMIZE. Each run is a pod with Spark, which processes the tables listed in tables or, with an empty list, all Delta tables in the Hive Metastore. The job logs one line per table and fails when any of them fails. Chart default:
VACUUM and OPTIMIZE enabled; OPTIMIZE ZORDER BY and DESCRIBE HISTORY disabled. (maintenance.enabled · maintenance.jobs) - Jobs ConfigMap. Holds the spark-defaults.conf, assembled from maintenance.spark.config, and the script each job runs. The keys you define are merged into the defaults. Chart default:
Hive Metastore and Ozone S3 in the tdp namespace. (maintenance.spark.config) - S3 keys Secret. Created by you before the deploy, in the release namespace. The jobs read the access key and the secret key from it. Chart default:
s3-credentials, with the access-key and secret-key keys. (maintenance.spark.s3Credentials) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. They apply to the jobs, to the self-test, and to the Spark subchart. Chart default:
tdp-registry. (global.imagePullSecrets) - ServiceAccount. Created by the chart for the job pods, with a Role that has no rules: the jobs do not call the Kubernetes API. Chart default:
deltalake-maintenance. (serviceAccount.name · rbac.rules) - Hive Metastore. Where the jobs look for the Delta tables, through the Thrift address in spark.hadoop.hive.metastore.uris. Chart default:
tdp-hive-metastore-metastore, in the tdp namespace. (maintenance.spark.config["spark.hadoop.hive.metastore.uris"]) - S3 storage. Where the table files live, in the spark.sql.warehouse.dir warehouse. The jobs reach it through S3A, with the keys from the Secret. Chart default:
tdp-ozone-s3g-rest, in the tdp namespace; warehouse s3a://warehouse/delta. (maintenance.spark.config["spark.hadoop.fs.s3a.endpoint"])
The values file for this action is in Another namespace. Build it from there and apply it with the procedure below.
Apply to the release
The next run of each job already uses the new addresses.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-deltalake \
--version 3.0.3 \
-n <NAMESPACE> \
-f <VALUES_FILE>
It worked when
Metastore URI and S3 endpoint. To confirm, run a job now, as in scenario 1.The variants are on the dedicated pages: in Integrations - Delta Lake, how the jobs connect to the lakehouse and how to check the addresses in use (scenario 1) and who reads the same tables (scenario 3). In Security - Delta Lake, the S3 keys with Ozone security on (scenario 1).
The Spark standalone subchart, off by default and not used by the jobs.
This scenario enables the Spark standalone cluster that the chart can deploy through the spark subchart: a master, which manages the cluster and distributes resources, and workers, which run the work. The chart ships it disabled, and the maintenance jobs do not use it: each one runs Spark in its own pod.
You want a Spark cluster coming from this chart. For a shared Spark cluster, use the tdp-spark chart, described in Spark Configuration.
spark.enabled: false: no Spark pod is created.
The full image reference in spark.image.repository, with spark.image.registry empty. It is independent of the jobs' image, in maintenance.spark.image.
The default already carries global.compatibility.openshift.adaptSecurityContext: force. What this value does is in General Configuration.
The CronJobs alongside a Spark cluster
- Maintenance CronJobs. One CronJob per enabled job: VACUUM, OPTIMIZE. Each run is a pod with Spark, which processes the tables listed in tables or, with an empty list, all Delta tables in the Hive Metastore. The job logs one line per table and fails when any of them fails. Chart default:
VACUUM and OPTIMIZE enabled; OPTIMIZE ZORDER BY and DESCRIBE HISTORY disabled. (maintenance.enabled · maintenance.jobs) - Jobs ConfigMap. Holds the spark-defaults.conf, assembled from maintenance.spark.config, and the script each job runs. The keys you define are merged into the defaults. Chart default:
Hive Metastore and Ozone S3 in the tdp namespace. (maintenance.spark.config) - S3 keys Secret. Created by you before the deploy, in the release namespace. The jobs read the access key and the secret key from it. Chart default:
s3-credentials, with the access-key and secret-key keys. (maintenance.spark.s3Credentials) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. They apply to the jobs, to the self-test, and to the Spark subchart. Chart default:
tdp-registry. (global.imagePullSecrets) - ServiceAccount. Created by the chart for the job pods, with a Role that has no rules: the jobs do not call the Kubernetes API. Chart default:
deltalake-maintenance. (serviceAccount.name · rbac.rules) - Hive Metastore. Where the jobs look for the Delta tables, through the Thrift address in spark.hadoop.hive.metastore.uris. Chart default:
tdp-hive-metastore-metastore, in the tdp namespace. (maintenance.spark.config["spark.hadoop.hive.metastore.uris"]) - S3 storage. Where the table files live, in the spark.sql.warehouse.dir warehouse. The jobs reach it through S3A, with the keys from the Secret. Chart default:
tdp-ozone-s3g-rest, in the tdp namespace; warehouse s3a://warehouse/delta. (maintenance.spark.config["spark.hadoop.fs.s3a.endpoint"]) - Subchart Spark cluster. A Spark standalone cluster, with master and workers, deployed by the spark subchart. The maintenance jobs do not use it. Chart default:
off. (spark.enabled)
spark.image.repository carries the full image reference: host, project, and name. spark.image.registry is an optional prefix, for a local mirror. Empty, it adds nothing to the reference.
1spark:2enabled: true3image:4 registry: ""5 repository: registry.tecnisys.com.br/tdp/images/spark6 tag: 4.0.2-37 pullPolicy: IfNotPresent
Deploys the Spark standalone cluster. The maintenance jobs still do not use it.
- Subchart enabled (linha 2). Deploys the Spark standalone cluster. The maintenance jobs still do not use it.
- registry (linha 4). Optional prefix, for a local mirror. Empty adds no prefix.
- repository (linha 5). The full image reference: host, project, and name.
Apply to the release
The subchart brings up the master and the workers in the release namespace.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-deltalake \
--version 3.0.3 \
-n <NAMESPACE> \
-f <VALUES_FILE>
It worked when
kubectl -n <NAMESPACE> get pods
The Spark master and worker pods reach Running.
When something goes wrong
Troubleshooting
Paste the error message or pick the symptom. The answer comes with the cause, what to do, and the command.
- Installation refused: 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 its status before repeating the installation.
- Job pods in ImagePullBackOff. Cause: The tdp-registry pull Secret does not exist in the release namespace. What to do: Create the tdp-registry Secret with your registry credentials (scenario 1).
- Job pod in CreateContainerConfigError. Cause: The S3 keys Secret does not exist in the release namespace, or does not have the keys given in accessKeyKey and secretKeyKey. What to do: Create the Secret with the key names the values file indicates (scenario 1).
- Job failed with FAILED on a table. Cause: One of the tables failed. The job continues with the others, logs one line per table, and ends with an error, listing the tables that failed. What to do: Read the run log: the FAILED line carries the table and the Spark message.
- no Delta tables to process; nothing to do. Cause: With an empty tables list, no Delta table was found in the Hive Metastore. In Z-ORDER, no tables entry has columns in zOrderBy. What to do: Check the tables in the metastore or list them in maintenance.jobs.<job>.tables. In Z-ORDER, provide the columns of each table (scenario 3).
- Job cannot reach the metastore or S3. Cause: The default addresses point to the Hive Metastore and Ozone in the tdp namespace. What to do: Set both addresses in maintenance.spark.config (scenario 5). The release notes show the addresses in use.
- Time travel or reading an old version fails. Cause: retentionHours below the default: VACUUM deleted files of versions that were still being read. What to do: Keep retentionHours at the chart default or above. Deleted files do not come back.
- Another problem. Cause: Start with the CronJobs, the runs, and the namespace events. What to do: The events in time order show what keeps the pod from starting.
To uninstall, helm uninstall <RELEASE_NAME> -n <NAMESPACE>. The tables and their data are not changed.
All parameters
Filter by name or by group. The keys live at the root of the values file.
33 of 33 parameters
| Parameter | Description | Chart default |
|---|---|---|
maintenance.enabledJobs | Creates the maintenance CronJobs | true |
maintenance.jobs.vacuum.enabledJobs | Enables VACUUM | true |
maintenance.jobs.vacuum.scheduleJobs | VACUUM schedule (daily at 2 AM) | 0 2 * * * |
maintenance.jobs.vacuum.retentionHoursJobs | Unreferenced files older than this number of hours are deleted | 168 |
maintenance.jobs.optimize.enabledJobs | Enables OPTIMIZE | true |
maintenance.jobs.optimize.scheduleJobs | OPTIMIZE schedule (Sundays at 3 AM) | 0 3 * * 0 |
maintenance.jobs.optimizeZOrder.enabledJobs | Enables OPTIMIZE ZORDER BY | false |
maintenance.jobs.optimizeZOrder.scheduleJobs | OPTIMIZE ZORDER BY schedule (Saturdays at 1 AM) | 0 1 * * 6 |
maintenance.jobs.optimizeZOrder.tablesJobs | {table, zOrderBy} entries. Only these tables are processed | [] |
maintenance.jobs.describeHistory.enabledJobs | Enables DESCRIBE HISTORY | false |
maintenance.jobs.describeHistory.scheduleJobs | DESCRIBE HISTORY schedule (daily at 6 AM) | 0 6 * * * |
maintenance.jobs.<job>.tablesJobs | database.table or table path (s3a://...). Empty = all Delta tables in the metastore | [] |
maintenance.spark.image.repositoryImage and resources | Jobs' image | registry.tecnisys.com.br/tdp/images/spark |
maintenance.spark.image.tagImage and resources | Jobs' image tag | 4.0.2-3 |
maintenance.spark.imagePullSecretsImage and resources | Extra pull secrets, only for the jobs, added to global.imagePullSecrets | [] |
maintenance.spark.resources.requests.cpuImage and resources | CPU reserved for each job's pod | 1 |
maintenance.spark.resources.requests.memoryImage and resources | Memory reserved for each job's pod | 2Gi |
maintenance.spark.resources.limits.cpuImage and resources | CPU limit for each job's pod | 2 |
maintenance.spark.resources.limits.memoryImage and resources | Memory limit for each job's pod | 4Gi |
maintenance.spark.config["spark.hadoop.hive.metastore.uris"]Metastore and S3 | Hive Metastore address | thrift://tdp-hive-metastore-metastore.tdp.svc.cluster.local:9083 |
maintenance.spark.config["spark.sql.warehouse.dir"]Metastore and S3 | Warehouse of the Delta tables | s3a://warehouse/delta |
maintenance.spark.config["spark.hadoop.fs.s3a.endpoint"]Metastore and S3 | S3 endpoint (Ozone S3 Gateway) | http://tdp-ozone-s3g-rest.tdp.svc.cluster.local:9878 |
maintenance.spark.config["spark.databricks.delta.retentionDurationCheck.enabled"]Metastore and S3 | Delta Lake retention check. When off, it accepts retentionHours below the default | false |
maintenance.spark.s3Credentials.secretNameMetastore and S3 | Secret with the S3 keys, in the release namespace | s3-credentials |
maintenance.spark.s3Credentials.accessKeyKeyMetastore and S3 | Secret key holding the access key | access-key |
maintenance.spark.s3Credentials.secretKeyKeyMetastore and S3 | Secret key holding the secret key | secret-key |
global.imagePullSecretsRegistry and platform | Pull secrets for the jobs and the Spark subchart | [tdp-registry] |
global.compatibility.openshift.adaptSecurityContextRegistry and platform | Security context adjustment on OpenShift | force |
spark.enabledSpark subchart | Deploys the subchart's Spark standalone cluster (the jobs do not use it) | false |
spark.image.registrySpark subchart | Optional image prefix, for a local mirror | "" |
spark.image.repositorySpark subchart | Full image reference of the subchart | registry.tecnisys.com.br/tdp/images/spark |
spark.image.tagSpark subchart | Subchart image tag | 4.0.2-3 |
test.enabledSelf-test | Creates the self-test Job | false |
For the complete list of parameters, run helm show values for the installed version.