Cloudera Lakehouse Optimizer table maintenance
Cloudera Lakehouse Optimizer and its components perform several operations in the background after you create or define a policy to initiate, evaluate, and complete the Iceberg table maintenance.
After you create a policy, Cloudera Lakehouse Optimizer performs the following steps:
- Initiates the schedule for each table based on the policies attached to the resource, such as catalog, namespace, and table.
- Consolidates the policies depending on the CRON schedule in all the active policies, and creates a schedule entry for all the policies that share the same CRON trigger.
- Initiates the evaluation phase when a CRON trigger is activated. The evaluation phase evaluates the policy script per table, compares Iceberg metadata and statistics to expected values, generates maintenance actions, and queues them as a task with a task ID.
- Sends the maintenance actions to the Spark engine in the correct sequence. Each maintenance action runs as a Spark job.
- Supervises task execution and collects task execution information in event logs. Cloudera Lakehouse Optimizer captures maintenance actions, Spark jobs, and job results as task metadata (task ID, action results, Spark metrics, task status).
