Cloudera Lakehouse Optimizer REST APIs
You can use Cloudera Lakehouse Optimizer REST APIs to create, maintain, and
monitor Cloudera Lakehouse Optimizer policies. You can perform several maintenance
operations on the Iceberg tables using REST APIs.
Cloudera Lakehouse Optimizer REST APIs Cloudera Lakehouse Optimizer provides REST APIs that you can use to create, manage, and monitor the Cloudera Lakehouse Optimizer policies. You can also use REST APIs to onboard namespaces, perform manual table maintenance, view task status and metadata, and fetch the details of different policy-related operations.Preparing and defining policies using REST APIs Before you create or define the Cloudera Lakehouse Optimizer policies using REST APIs, the administrator must complete the necessary prerequisites. After defining the policy, the administrator must onboard the required namespace, associate the required tables to the policy, and reschedule the namespace.Defining Cloudera Lakehouse Optimizer resources using REST APIs When you use REST APIs to create or define a Cloudera Lakehouse Optimizer policy, use the default policy called "ClouderaAdaptive" as-is, or create a new policy. When you create a new policy or override an existing policy, you define the policy in a new JEXL file, alternatively add the required constants in a new JSON file, and then upload the resources.Scheduling policies with a cron expression using REST APIs Define a Quartz-style cron expression and optional timezone in policy resources so Cloudera Lakehouse Optimizer evaluates associated tables on a recurring schedule.Running policies on demand using REST APIs Manually execute a policy for an Iceberg table when required. Dry run the policy before you initiate maintenance.Verifying service health and viewing default Cloudera Lakehouse Optimizer policy After you verify whether you can access Cloudera Lakehouse Optimizer REST APIs, Cloudera recommends following the best practice of performing a health check of the service, and then verifying whether the ClouderaAdaptive default policy is available in Cloudera Lakehouse Optimizer .