Skip to main content
snm1523
Gold ⭐️⭐️
January 23, 2020
Solved

Cloudera Manager APIs

Hello,

 

While browsing through various articles related to Cloudera Manager, I came across an article which talks about exporting Cloudera Manager configs using a script.

 

In this a wget from "${SCM_URL}/cmf/exportCLI" url is doing the trick. Being fairly new with playing APIs, I tried to read across somethings related to CM APIs, however, did not find much. Would be great if someone could help me to understand which exact configurations are exported with the mentioned API.

 

Apologies if seems to be a basic question. However, thought of asking community instead of creating confusions for myself.

 

Thanks

snm1523

EricL
EricLAnswer
Platinum ⭐️⭐️
January 23, 2020
@snm1523,

CM's full API documentation can be found here:
https://archive.cloudera.com/cm7/7.0.3/generic/jar/cm_api/apidocs/index.html

The API url starts with /api/v{number}, for example: http://{CM_URL}:7180/api/v32/clusters

I have never personally used API ${SCM_URL}/cmf/exportCLI, I googled and found those articles seemed very old (more than 8-9 years old). I do not think it is applicable anymore. Current CM provides a URL for you to export all cluster configurations in one call via ${SCM_URL}/api/v32/cm/deployment.

v32 is the highest version number that is available in CM6.2, the version that I am using, so depending on your version of CM, the version of API might be different. Use ${SCM_URL}/api/version to check.

Cheers
Eric

3 replies

EricL
Platinum ⭐️⭐️
EricLAnswer
Platinum ⭐️⭐️
January 23, 2020
@snm1523,

CM's full API documentation can be found here:
https://archive.cloudera.com/cm7/7.0.3/generic/jar/cm_api/apidocs/index.html

The API url starts with /api/v{number}, for example: http://{CM_URL}:7180/api/v32/clusters

I have never personally used API ${SCM_URL}/cmf/exportCLI, I googled and found those articles seemed very old (more than 8-9 years old). I do not think it is applicable anymore. Current CM provides a URL for you to export all cluster configurations in one call via ${SCM_URL}/api/v32/cm/deployment.

v32 is the highest version number that is available in CM6.2, the version that I am using, so depending on your version of CM, the version of API might be different. Use ${SCM_URL}/api/version to check.

Cheers
Eric
Translate
snm1523
snm1523Author
Gold ⭐️⭐️
January 24, 2020

Perfect explanation. Thank you @EricL. This certainly helped.

Translate