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.

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

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

Explorer

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 

1 REPLY 1
Highlighted

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

Expert Contributor

You can use the config API to update a service configuration - Document is in link https://cloudera.github.io/cm_api/apidocs/v11/path__clusters_-clusterName-_services_-serviceName-_ro...

 

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
Don't have an account?
Coming from Hortonworks? Activate your account here