Cloudera Lakehouse Optimizer features

Cloudera Lakehouse Optimizer supports several features. On Anywhere Cloud, you create and manage policies using the CLI and REST APIs. Some capabilities are available only through REST APIs.

The following table lists the supported features and the supported methods to use these features:

Table 1. Supported feature list
Features Available methods to use the feature Description
Role-based access (Administrator, Operator, Monitor)
  • CLI
  • REST API
Controls who can create, edit, execute, or view policies and maintenance tasks.

An Administrator has access to all features. An Operator can execute existing policies but cannot create, update, or delete policies. A Monitor has read-only access.

For more information, see Cloudera Lakehouse Optimizer roles and access and Configuring roles for Cloudera Lakehouse Optimizer users.

Schedule-based policy
  • CLI
  • REST API – at table, namespace, and catalog level
Schedules policies to be evaluated at regular intervals using a Quartz-style cron expression and optional timezone in policy resources.

You can create multiple versions of the policy definition at catalog, namespace, or table level using the CLI and REST APIs.

For more information, see Scheduling policies with a cron expression, Creating and associating Cloudera Lakehouse Optimizer policies, and Define Resources Restapi.

Manual trigger and execution
  • CLI
  • REST API
Runs the policies manually to optimize the Iceberg tables when required.

For more information, see Running policies on demand using the CLI and Running policies on demand using Cloudera Lakehouse Optimizer REST APIs.

Dry-run policies
  • CLI
  • REST API
Generates the table maintenance actions but does not initiate any maintenance actions. Dry run the policies to ensure they run effectively without failure.

For more information, see Running policies on demand using the CLI and Running policies on demand using Cloudera Lakehouse Optimizer REST APIs.

Small file compaction options include:
  • Target file size
  • Minimum number of input files
  • Delete file threshold
  • Maximum concurrent file group rewrites
  • Enable partial progress
  • Maximum number of commits during partial progress
  • Use starting sequence number of snapshot
  • Rewrite all
REST API Automates the Iceberg data file compaction maintenance actions.

In Apache Iceberg documentation, this procedure is called rewrite_data_files, and it supports Table, Strategy (binpack or sort), sort_order (zorder, sortDirection, NullOrder), options, and where arguments which are also supported by Cloudera Lakehouse Optimizer.

Orphan file removal includes:
  • Delete older than
REST API Automates the Iceberg orphan file removal maintenance action.
Snapshot expiration options include:
  • Maximum snapshot age
  • Retain last
  • Expire snapshot ID
  • Clean expired files
REST API Automates the Iceberg snapshot management maintenance actions.
Rewrite manifest options include:
  • Target file size
  • Use caching
REST API Automates the Iceberg manifest rewrite maintenance actions.
Positional delete rewrite options include:
  • Rewrite job order
  • Enable partial progress
  • Maximum number of commits during partial progress
  • Minimum number of input files
  • Maximum concurrent group rewrites
  • Target file size
REST API Automates the Iceberg positional delete rewrite maintenance actions.
Service auditing Optional audit export at Anywhere Cloud Console deploy Provides an audit trail of user and system activities on Cloudera Lakehouse Optimizer, including policy creation, editing, deletion, association, namespace operations, authentication events, and table maintenance actions. On Anywhere Cloud, events are sent to the platform audit gateway with other data services.

For more information, see Service auditing for Cloudera Lakehouse Optimizer, Data Service Cluster and Engine Telemetry, and Configuring Audit Exporter Settings.

Cloudera Lakehouse Optimizer event logging REST API Ingests the maintenance task metadata, also called an event, into the sys.clo_events Iceberg table. You can use the table to analyze the event logs, use it for troubleshooting purposes and for root cause analysis, and to generate reports.

For more information, see Viewing logs for Cloudera Lakehouse Optimizer.

Monitoring policy jobs
  • CLI
  • REST API
Monitor the policy jobs using one of the following methods:
  • To monitor Spark jobs:
  • Use CLI commands such as list-tasks and get-table-status-details.
  • Use the GET /tasks or GET /tasks/id/{id} APIs.

For more information, see Viewing table maintenance status .

Manual trigger and execution
  • CLI
  • REST API
Manually run the policies to optimize the Iceberg tables when required.

For more information, see Running policies on demand using the CLI and Running policies on demand using Cloudera Lakehouse Optimizer REST APIs.

Policy dry-run
  • CLI
  • REST API
Dry run existing policies to ensure they run effectively without failure.

For more information, see Running policies on demand using the CLI and Running policies on demand using Cloudera Lakehouse Optimizer REST APIs.

The following additional capabilities are also available on Anywhere Cloud:

  • Viewing metrics such as data read and data written for each maintenance task using Cloudera Observability.
  • Viewing infrastructure, job, user, and service activity for the workload environment that hosts Cloudera Lakehouse Optimizer in Anywhere Cloud Console.