Reply
Highlighted
New Contributor
Posts: 2
Registered: ‎03-06-2018
Accepted Solution

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

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

Posts: 605
Topics: 1
Kudos: 142
Solutions: 76
Registered: ‎04-22-2014

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

@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

New Contributor
Posts: 2
Registered: ‎03-06-2018

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

[ Edited ]

@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

Announcements