Support Questions

Find answers, ask questions, and share your expertise

Cloudera Manager APIs

avatar
Expert Contributor

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

1 ACCEPTED SOLUTION

avatar
Super Guru
@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

View solution in original post

3 REPLIES 3

avatar
Super Guru
@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

avatar
Expert Contributor

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

avatar
Explorer

thanx Eric.your answering  helped a lot.

v32 also working in this config file.

https://github.com/kloudsense/cloudera_exporter