Support Questions

Find answers, ask questions, and share your expertise

Kafka Python scripted start/stop

New Contributor

We want to start up and shut down Kafka via a Python script in place of using the Cloudera Manager Web Gui. The Cloudera documentation here: states; 
"Use Cloudera Manager to start and stop Kafka and Zookeeper services. Do not use the kafka-server-start, kafka-server-stop, zookeeper-server-start, or zookeeper-server-stop commands."

There's nothing we can do to start and stop Kafka in a scripted manner?


Super Guru



Once your cluster services are managed by Cloudera Manager, CM must be used to start/stop all services and roles.

Cloudera Manager has an API that lets you leverage the REST API, Python, or Java.




Here is an example a service start:

and stop:


The Python Doc is here: