Support Questions
Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

HOw to update Host Monitor and Service monitor None-java memory via API


When running the Cloudera wizard with cluster environment more than 10 servers, the final step failed (service startup) due to low memory of Service monitor and Host monitor.  In order to overcome this problem, I wish to update the Host Monitor and Service monitor None-java memory via Cloudera API before running the wizard.  I was looking for the parameter in the API using swagger but I didn't manage to locate it. 

Please advice 


Expert Contributor

You can use the config API to update a service configuration - Document is in link


I am quoting an example for service monitor below

You can find the list of all roleconfiggroup by running command

curl -u 'username:password' http://xxx:7180/api/v14/cm/service/roleConfigGroups/
Next I am updating the heap of service monitor to  650MB

curl -u 'username:password' -X PUT -H "Content-Type:application/json" -H "Accept:application/json" -d '{"items":[{ "name": "firehose_heapsize","value": "681574400"}]}' http://xxxx:7180/api/v14/cm/service/roleConfigGroups/mgmt-SERVICEMONITOR-BASE/config
Then restarted it

curl -X POST -u  'username:password'  http://xxxx:7180/api/v14/cm/service/commands/restart