After Cloudera Lakehouse Optimizer deployment completes, endpoint URLs are
displayed in the Anywhere Cloud Console. Open the Cloudera Lakehouse Optimizer landing page for the API explorer, REST APIs, and optional
Restish CLI access.
-
In the Anywhere Cloud Console left navigation pane, click
Apps.
-
Under the Deployed Engines tab, locate your Cloudera Lakehouse Optimizer instance using the search field.
Each row displays the engine status, instance name, endpoints, engine type,
blueprint name, version, cluster, infrastructure used, and deployment
status.
A successful deployment is displayed under the Engine
Status column as Running. If the
status is Deploying..., wait until deployment
finishes. If the status is Failed, resolve the
failure before you continue.
-
Open the instance details.
In the
Endpoints section, the deployment lists the
Cloudera Lakehouse Optimizer landing page URL. Open that URL in a
browser to reach the
Cloudera Lakehouse Optimizer home page and API
explorer.
- The landing page base URL hosts the Cloudera Lakehouse Optimizer
REST API at /clo/api/v1/.
- Open …/clo/api/v1/openapi.json (append to the
landing page host or open from the console link) to view the OpenAPI
specification.
- Use Copy in the console when you need to share
the URL with third-party client tools.
-
Assign Cloudera Lakehouse Optimizer workspace roles and verify API
access.
In the Anywhere Cloud Console, open from the side navigation. Search for your user and, on the
Application Roles tab, assign a Cloudera Lakehouse Optimizer application role such as
clo-admin, clo-operator, or
clo-monitor on the deployed Cloudera Lakehouse Optimizer instance. Cloudera Lakehouse Optimizer APIs are role-protected. For
API verification, use clo-admin (see Configuring roles for Cloudera Lakehouse Optimizer users).
From the API
explorer on the Cloudera Lakehouse Optimizer landing page:
- Call GET /clo/api/v1/startup. While setup is
incomplete,
ready is false and Cloudera Lakehouse Optimizer retries every 30 seconds. Review
checks such as catalog, catalogAccess,
cloPolicies, namespace, and
storage and each hint.
- Call GET /clo/api/v1/cloIdentity to read workload
identities used for Ranger and Cloudera Data Engineering role
assignment (see Granting Ranger and Cloudera Data Engineering access for Cloudera Lakehouse Optimizer).
When all startup checks report OK and
ready is true, Cloudera Lakehouse Optimizer is ready for policies and maintenance
tasks. If ready is false, or checks such as
catalogAccess or storage report
PENDING, complete Ranger and Cloudera Data Engineering setup in Granting Ranger and Cloudera Data Engineering access for Cloudera Lakehouse Optimizer.
- Optional:
Use Restish for non-graphical API access.
Restish is a third-party open-source CLI utility that generates commands from
OpenAPI specifications at runtime. Install Restish on your workstation before
you configure it for
Cloudera Lakehouse Optimizer.
From the Anywhere Cloud Console API Explorer, run the
POST request that provisions API access key
credentials. Set these environment variables on your client host (replace
the console host with your Anywhere Cloud base
URL):
- AWC_TOKEN_URL: Token URL for client credentials, for
example
https://<console-host>/api/v1/auth/access-keys/token.
- AWC_API_CLIENT_ID: Client ID from the access key
response.
- AWC_API_CLIENT_SECRET: Client secret from the access
key response.
Install the Restish CLI. Register Cloudera Lakehouse Optimizer in
~/.config/restish/restish.json with:
base_url:
https://<experience>.<cluster>.<domain>/clo/api/v1/
spec_files: The openapi.json URL
from the Cloudera Lakehouse Optimizer landing page.
- OAuth client credentials profile using the environment variables
above.
Synchronize the specification and invoke the
CLI:
restish api sync clo
restish clo
Use --rsh-insecure only
when you work with untrusted HTTPS certificates. Run restish api
auth inspect clo to verify credential
coverage.
If a maintenance task fails with HTTP 403 requiring cde-admin or
cde-user, assign those roles to the Cloudera Lakehouse Optimizer
service account as described in Granting Ranger and Cloudera Data Engineering access for Cloudera Lakehouse Optimizer.