Creating Ranger policies for additional catalogs
Grant catalog-create and catalog-list permissions on the Harmony Catalog Ranger service so you can create catalogs through the management API.
You must open Ranger Admin with a user that has Ranger Admin permission. If you do not see Harmony Catalog services or policies, ask a platform administrator to grant Ranger Admin. See Ranger users, groups, and administrators.
Ensure to have the following values before you create the policy:
- Your exact Knox sign-in username (case-sensitive).
- The Ranger service name for your Cloudera Harmony Catalog instance,
for example
udf_harmony_catalog_<blueprint-name>, where<blueprint-name>is the blueprint name for your deployment. Confirm the name in Ranger Admin on Cloudera Unified Data Fabric.
You can create and list catalogs on the Cloudera Harmony Catalog management API after the policy takes effect.
- Wait about 30 to 60 seconds for the policy to take effect.
- Set only root on this policy. Catalog creation is checked at the service root, so a policy that also sets a catalog does not allow creation.
- This grant allows creating and listing catalogs only. It does not authorize namespaces or tables. If users will create namespaces or tables through the REST API, grant those permissions on the target catalog first—before they run those steps—not only catalog create and list.
- If you get 403 Principal '<user>' is not authorized ... when creating a catalog, the policy is missing or your username does not match your Knox sign-in name.
To create catalogs after Ranger is configured, see Creating catalogs, namespaces, and tables on Cloudera Harmony Catalog.
