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.
-
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"
-
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'