Support Questions

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

Need Guidance : Information of restarts for cloudera services

avatar

Hi

 

Where does Cloudera manager store restart of services information in the database ? We are using the default postgres database.

 

Thanks

 

Srikrishna

1 ACCEPTED SOLUTION

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
4 REPLIES 4

avatar
Master Collaborator

Can you summarise your end goal, so I can provide you with an appropriate information.

avatar

Thanks for your response. We are building a custom UI to display messages when cloudera manager stops/starts the services through API. Is it possible to stop individual services through API. rather than all ? .

 

Is there a specific table it stores relevant data for us to query and check? 

 

We are interested to understand through API., what role each node belongs to ? What is the API call.? 

Sorry for so many questions . I appreciate your response.

avatar
Master Collaborator

Yes you can stop service and it's individual roles via CM API [1] 

 

> Is there a specific table it stores relevant data for us to query and check? 

Service status can be check directly from the CM API querying the relevant endpoint, specifically for the service you'd need to GET (open your browser) to the service endpoint [2] which will give you its state [3]

 

 

As a start point you could see the example [4a][4b]

 

[1] https://github.com/cloudera/cm_api/wiki/Start-Stop-Restart-JobTracker-Role

[2] https://cloudera.github.io/cm_api/apidocs/v11/path__clusters_-clusterName-_services_-serviceName-.ht...

[3] https://cloudera.github.io/cm_api/apidocs/v11/ns0_apiServiceState.html

[4a] https://github.com/cloudera/cm_api/tree/master/python/examples

[4b] https://github.com/gdgt/cmapi

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login