Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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