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: https://www.cloudera.com/documentation/enterprise/6/6.0/topics/kafka_admin_cli.html 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?
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:
The Python Doc is here: