Created 03-06-2018 08:31 PM
I downloaded,distributed and activate STREAMSETS parcel but I dont know how to go about adding the service via the Cloudera Manager rest api. I can see the parcel listed both via rest api and UI. I can go about adding the service via the UI but want to check if it can be done via the rest api
Created 03-06-2018 10:15 PM
While I don't have the exact way to add the Service, you should be able to use the following:
https://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_services.html
First, make sure that you can see the StreamSets service listed when using serviceTypes:
https://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_serviceTypes.html
NOTE: In the above, I used the latest, v19, but you should use the latest api version that is supported by your Cloudera Manager version.
Hope that helps,
Ben
Created 03-06-2018 10:15 PM
While I don't have the exact way to add the Service, you should be able to use the following:
https://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_services.html
First, make sure that you can see the StreamSets service listed when using serviceTypes:
https://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_serviceTypes.html
NOTE: In the above, I used the latest, v19, but you should use the latest api version that is supported by your Cloudera Manager version.
Hope that helps,
Ben
Created on 03-07-2018 09:09 AM - edited 03-07-2018 09:09 AM
Thanks for your response. What is an example of the payload to post to /services. I am using
{ "name": streamsets, "type": STREAMSETS }
and its failing