Support Questions

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

hadoop & eco system cmdline start, stop

avatar
New Contributor

I am using CDP 7.1.4 version.
Hadoop & Ecosystem without using Cloudera Manager UI
Is there a way to start and stop with Linux commands?

1 REPLY 1

avatar
Super Collaborator

Hi @ditto 

You can use API to start the services.

To Stop and Start a CDH service, you could try to make use of the CM APIs such as the below,

Start the service - POST /clusters/{clusterName}/services/{serviceName}/commands/start

Stop the service - POST /clusters/{clusterName}/services/{serviceName}/commands/stop

 

https://cloudera.github.io/cm_api/apidocs/v6/path__clusters_-clusterName-_commands_stop.html

https://cloudera.github.io/cm_api/apidocs/v6/path__clusters_-clusterName-_commands_start.html

https://cloudera.github.io/cm_api/apidocs/v6/index.html