Skip to main content
Platinum ⭐️⭐️
March 4, 2025
Solved

Stop and starting roles using commandline in Kafka backend

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?

 

    abdulpasithali
    Gold ⭐️
    March 4, 2025

    Hello @Former Member 

    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.  

    1 reply

    abdulpasithali
    Gold ⭐️
    Gold ⭐️
    March 4, 2025

    Hello @Former Member 

    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.  

    Translate