Skip to content

🏞️ STREAMING DATA ONLY: Stop Kafka Service

Stop Apache Kafka when you are done working.

When

  • Whenever you are done working on a project that uses the Kafka message broker service.

Stop Kafka With CTRL+c

Kafka runs in the foreground in the terminal where you started it. Go to the terminal where Kafka is running (WSL if Windows user).

Press CTRL key and c key together (CTRL+c).

Wait for the command prompt to return.

Next Work Session

The next time you work on this project:

  1. Follow the start-kafka process.
  2. Leave the Kafka terminal open.
  3. Run the Python producer and consumer from Python.

Important

You only need to run install-kafka once per machine.

Use start-kafka each time you begin working.

Use stop-kafka when you finish a work session.