Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Cloudera Manager APIs

Solved Go to solution
Highlighted

Cloudera Manager APIs

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

Accepted Solutions
Highlighted

Re: Cloudera Manager APIs

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

2 REPLIES 2
Highlighted

Re: Cloudera Manager APIs

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

Highlighted

Re: Cloudera Manager APIs

Contributor

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

Don't have an account?
Coming from Hortonworks? Activate your account here