Kafka - Start Stop Restart Kafka

This assumes you have installed Kafka. Let's say Kafka was installed at /opt/kafka_<version>. First, start the zookeeper server. Open another Terminal, and issue the below command to start or stop the Kafka server.

bash /opt/kafka_<version>/bin/zookeeper-server-start.sh /opt/kafka_<version>/config/zookeeper.properties &


Start Kafka Server

bash /opt/kafka_<version>/bin/kafka-server-start.sh /opt/kafka_<version>/config/server.properties &


Stop Kafka Server

bash /opt/kafka_<version>/bin/kafka-server-stop.sh /opt/kafka_<version>/config/server.properties &

Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 913e2 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |