URI to fetch, upload, and update policy resources when using REST APIs
The Cloudera Lakehouse Optimizer resources use URI for identification. The URI is
used to fetch, upload, or update the policy resources when you use REST APIs.
To construct a URI, for example the
dlm://tpp/product/hive/ClouderaAdaptive URI, you must provide the
following elements:
The dlm URI scheme.
An authority, such as tpp for table policy property,
tps for table policy script, or tpa for table policy
association.
The catalog / namespace /
table / policy in the given order. This
determines the level at which the script and properties have been defined, and also
determines the scope of the resource. The default resource is
dlm://tps:default/ClouderaAdaptive.
The following image shows the different components of a sample URI:
Examples:
The dlm://tpp/product/hive/ClouderaAdaptive URI
identifies the ClouderaAdaptive policy properties (JSON) defined for all the tables in the
hive namespace in the product catalog.
The dlm://tpp/product/hive/customers/ClouderaAdaptive URI
identifies the properties defined for the customers table in the
hive namespace of the product catalog.