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.

  1. Ensure that Cloudera Lakehouse Optimizer is available and healthy using the GET /config/health API.
    export BASE="<CLO landing page host>/clo/api/v1"
    export TOKEN="<paste token here>"
    curl -sk -H "Authorization: Bearer $TOKEN" "$BASE/config/health"

    By default, Cloudera Lakehouse Optimizer performs a partial health check. To perform a full health check, append scope=full.

    curl -sk -H "Authorization: Bearer $TOKEN" "$BASE/config/health?scope=full"
  2. Verify whether the ClouderaAdaptive default policy is available in Cloudera Lakehouse Optimizer using the GET /policies/resource API. The API fetches the default ClouderaAdaptive policy details.
    curl --location 'https://[***LAKEHOUSE OPTIMIZER ENDPOINT***]/api/v1/policies/resource?uri=clo%3A%2F%2Ftps%3Adefault%2FClouderaAdaptive' \ --header 'Authorization: Bearer ey'
    For information about the URI to use in the GET /policies/resource API, see URI to fetch, upload, and update policy resources.