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.

behavior to start service using CM API is different from CM UI.

behavior to start service using CM API is different from CM UI.

Hi

 

When i start my service using cloudera manger UI . its automatically done changes in some  configuration parameters of particular service . for example when i start YARN service using cloudera Manger UI it changes Java Heap Size of Resource Manger and Node Manager . but when i tried to run "YARN" using cloudera manager API it doest not change this parameter and  i think its use a default configuartion parameter ,  sometime its also show error like " cannot allocate particular amount of memory" . and after manually  doing chnages in Java Heap Size of Resource Manger and Node Manager , service started succefully 

 

is this a default behavior of cloudera manger API and its a Developer/Admin responsibility to set all the configuration parameter ?

 

Regards

Prateek

1 REPLY 1
Highlighted

Re: behavior to start service using CM API is different from CM UI.

Sounds like you want automatic configuration. This is done by the CM wizard, and is separate from starting. Often when adding a service, you need to:

1. add the service

2. add roles, or automatically assign roles

3 .run auto configuration

4. execute first run

 

These are all available in the API.

 

Assuming this is for adding a specific service, which is distinct from configuring a whole new cluster, here's what you'll want:

Auto role assignment:

https://cloudera.github.io/cm_api/apidocs/v11/path__cm_service_autoAssignRoles.html

Auto configure:

https://cloudera.github.io/cm_api/apidocs/v11/path__cm_service_autoConfigure.html

First run:

https://cloudera.github.io/cm_api/apidocs/v11/path__clusters_-clusterName-_services_-serviceName-_co...

 

Thanks,

Darren

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