Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How do we add a new service using Cloudera Manager rest api

avatar
New Contributor

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

1 ACCEPTED SOLUTION

avatar
Master Guru

@antonio,

 

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

View solution in original post

2 REPLIES 2

avatar
Master Guru

@antonio,

 

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

avatar
New Contributor

@bgooley

 

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