Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
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