Granting Ranger and Cloudera Data Engineering access for Cloudera Lakehouse Optimizer

After you deploy Cloudera Lakehouse Optimizer, assign workspace roles, read workload identities, add Ranger policies on awc_s3 and on udf_harmony_catalog_CHC app name, confirm startup, and assign Cloudera Data Engineering roles so maintenance jobs can run.

  • Complete Configuring Cloudera Lakehouse Optimizer on Anywhere Cloud. The S3 bucket for Cloudera Lakehouse Optimizer is a Cloudera Unified Data Fabric storage bucket. Cloudera Lakehouse Optimizer uses a dedicated Cloudera Data Engineering Spark compute engine version 3.5.8.
  • Ensure that Cloudera Harmony Catalog, Cloudera Unified Data Fabric, and Cloudera Data Engineering are running.
  • You can open Ranger Admin only if your user has Ranger Admin access. A platform administrator can grant it by assigning the Cloudera Unified Data Fabric administrator application role on the Cloudera Unified Data Fabric engine in Security > Users and Groups > Application Roles. Only a platform administrator can assign that role to other users.

Cloudera Lakehouse Optimizer does not create Ranger policies for awc_s3 or the Cloudera Harmony Catalog Ranger service. Open Ranger Admin from the Cloudera Unified Data Fabric engine landing page, or use Ranger Admin REST APIs with RANGER_URL from the Cloudera Unified Data Fabric landing page. For how to open Ranger Admin, see Accessing the Ranger Admin web UI.

Ranger registers a separate service for each Cloudera Harmony Catalog instance. The service name is not a single static udf_harmony_catalog value. It uses the prefix udf_harmony_catalog_ followed by the Cloudera Harmony Catalog application name from your Cloudera Lakehouse Optimizer blueprint deployment.

  1. Determine the Cloudera Harmony Catalog application name used in the Cloudera Lakehouse Optimizer blueprint.
  2. In Ranger Admin, select the service named udf_harmony_catalog_CHC app name.
Table 1. Policies to add for Cloudera Lakehouse Optimizer
Policy name (Run Book) Ranger service Purpose
clo-s3-rw awc_s3 read and write on the warehouse bucket; recursive path *.
clo-catalog-namespace-scoped udf_harmony_catalog_CHC app name Catalog and namespace access for policy evaluation and REST event log.
clo-table-maintenance udf_harmony_catalog_CHC app name Table access for maintenance actions.

Alternatively, add the same principals and access types to existing policies all - catalog, all - ns, and all - tables with PUT /service/public/v2/api/policy/{id} (not POST). Back up policies before you update them.

  1. Assign Cloudera Lakehouse Optimizer workspace roles and verify startup status.

    In the Anywhere Cloud Console, go to Admin Center > Security > Users and Groups. Search for your user in the search field, 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. API calls are role-protected. For post-deploy verification, your user needs at least clo-admin or operator access to protected APIs. For group-to-role mapping in service configuration, 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. Checks include catalog, catalogAccess, cloPolicies, namespace, and storage.

  2. Read Cloudera Lakehouse Optimizer workload identities.

    Call GET /clo/api/v1/cloIdentity. Use these values as Ranger policy users:

    • result.catalog.identity: SPIFFE ID for catalog access (CLO_SPIFFE in the runbook)
    • result.executionEngine.identity: Kubernetes service account for the compute engine (CLO_SA_ID in the runbook)
  3. Create the awc_s3 Ranger policy for object storage.

    When you deploy Cloudera Unified Data Fabric, Ranger already includes the awc_s3 service. Create policy clo-s3-rw on that service. Grant CLO_SPIFFE and CLO_SA_ID read and write on the S3 bucket you selected for Cloudera Lakehouse Optimizer storage, path *, recursive.

  4. Create or update existing Ranger policies on udf_harmony_catalog_CHC app name for your Cloudera Harmony Catalog instance.
    1. Create policy clo-catalog-namespace-scoped.
      Grant both identities: catalog-list, catalog-properties-read, namespace-list, namespace-properties-read, and namespace-create when dlm.catalog.type=rest requires the REST catalog event log namespace. Do not add catalog-metadata-full or namespace-metadata-full unless your deployment requires them.
    2. Create policy clo-table-maintenance.
      Grant both identities: table-list, table-metadata-full, table-properties-read, table-data-read, table-data-write, table-snapshot-add, table-snapshots-remove, table-statistics-set.
  5. Confirm Cloudera Lakehouse Optimizer is ready.
    1. Call GET /clo/api/v1/startup until all checks report OK and ready is true.
    2. If the namespace check fails, create the namespace that matches dlm.namespace.name in the catalog, or change that setting.
      If you did not set a default namespace at deploy time, register one with PUT /clo/api/v1/namespaces/{namespace}.
  6. Assign Cloudera Data Engineering roles to the Cloudera Lakehouse Optimizer service account.

    Add CLO_SA_ID to cde-admin and cde-user when maintenance jobs return HTTP 403 requiring those roles. Use the Anywhere Cloud Console API explorer: GET /api/v1/auth/roles, then POST /api/v1/auth/roles/{roleId}/members with member_type user.

When startup reports ready and Cloudera Data Engineering roles are assigned, you can create Cloudera Lakehouse Optimizer policies, associate tables, and run maintenance. See Cloudera Lakehouse Optimizer REST APIs.

For Harmony Catalog Ranger permissions, see the Harmony Catalog documentation after you identify udf_harmony_catalog_CHC app name for your instance.