Authenticating to Cloudera Harmony Catalog REST APIs with Knox
Use Knox SSO from the command line to call Cloudera Harmony Catalog
management and catalog REST APIs. Set CONSOLE_KNOX and
CATALOG_API, then obtain a hadoop-jwt session cookie
for curl and other CLI clients.
The Anywhere Cloud Console authenticates users through Knox SSO. For
post-deployment API work (for example creating catalogs), you can exchange your
platform username and password for a short-lived hadoop-jwt cookie
without opening a browser.
If you get 401, the token expired or the login failed. Repeat the Knox OBO step.
If you get 403 Principal '<user>' is not authorized ..., Ranger does not grant the operation. Configure policies on the Harmony Catalog Ranger service before you retry. See Creating Ranger policies for additional catalogs.
