06-13-2019 11:57 AM
I have been working with CM API lately to do some automations. One of the task that I have now is to be able to automate role instance addition on an existing Cluster host, for ex: spining a nodemanager on a cluster host.
I tried searching for CM API calls for the same but couldn't find anything directly related , maybe you know?
Thanks in advance
06-17-2019 07:17 AM
Please review the CM API docs
Posting a role object will make CM create that role e.g. http://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_services_-serviceName-_rol...
You may want to look into this end-to-end example in python as well.