Support Questions

Find answers, ask questions, and share your expertise

Stop and starting roles using commandline in Kafka backend

avatar
Frequent Visitor

Does anyone here can share if we can perform stop and start of roles using commandline in Kafka backend if the Cloudera Manager is down?

 

1 ACCEPTED SOLUTION

avatar
Contributor

Hello @Syl1234 

Thank you for reaching out Cloudera Community.

We can start/stop the service using supervisord on the host level where the cluster roles deployed, however it will cause role/service status discrepancy in the CM's backend database.  Hence it is always recommended to stopping and restarting cluster services should perform through Cloudera Manager only.   Kindly refer our product documentation [0]

[0]

https://docs.cloudera.com/data-hub/cloud/manage-clusters/topics/mc-restart-services.html

If you are looking for cli options, You can make use of the REST API call /clusters/{clusterName}/services/{serviceName}/roleCommands/stop under CM UI -> Support -> API Explorer or API Documentation.  

View solution in original post

1 REPLY 1

avatar
Contributor

Hello @Syl1234 

Thank you for reaching out Cloudera Community.

We can start/stop the service using supervisord on the host level where the cluster roles deployed, however it will cause role/service status discrepancy in the CM's backend database.  Hence it is always recommended to stopping and restarting cluster services should perform through Cloudera Manager only.   Kindly refer our product documentation [0]

[0]

https://docs.cloudera.com/data-hub/cloud/manage-clusters/topics/mc-restart-services.html

If you are looking for cli options, You can make use of the REST API call /clusters/{clusterName}/services/{serviceName}/roleCommands/stop under CM UI -> Support -> API Explorer or API Documentation.