Creating catalogs, namespaces, and tables on Cloudera Harmony Catalog
Set up catalogs, namespaces, and tables on a deployed Cloudera Harmony Catalog instance using the CLI and REST APIs.
When you spin up Cloudera Harmony Catalog for the first time, the service already creates a default catalog from Default catalog name on the Engine Settings tab during deployment. See step 8a in Configuring Cloudera Harmony Catalog on Anywhere Cloud. Use this procedure to create additional catalogs and, optionally, namespaces and tables through the CLI.
Deployment creates Ranger policies on the default catalog so consumers can use that catalog without creating another one. If you use this procedure to create additional catalogs, configure catalog-create and catalog-list policies for your user first. Cloudera Harmony Catalog does not create bootstrap policies for connected engines.
Before you begin, ensure the following requirements are met:
- A Cloudera Harmony Catalog instance in
Running status. For
CATALOG_API, see Accessing Cloudera Harmony Catalog. For Knox SSO andCONSOLE_KNOX, see Authenticating to Cloudera Harmony Catalog REST APIs with Knox. - Your account can authenticate through Knox SSO. To create additional catalogs through the management API, you need catalog-create and catalog-list on the Harmony Catalog Ranger service. See Creating Ranger policies for additional catalogs. To create namespaces or tables in the steps below, you also need namespace and table permissions on the target catalog in Ranger—a catalog-only policy does not authorize those operations. Grant namespace and table access before you run those steps.
- A storage bucket name for managed catalog storage, from the deployment Storage configuration or your administrator.
When you enable Mirror catalog metadata to Unified Data Fabric during deployment, catalog metadata appears in the Cloudera Unified Data Fabric UI. To find catalogs and tables, see Finding and understanding assets.
