Pavithra K C
Pavithra K C

Reputation: 75

Apache Kafka Consumer - terminate from console

I am new to Apache Kafka and I am trying to consume messages from a topic. I ran the following from the console to see the messages:

bin\windows\kafka-console-consumer.bat --zookeeper localhost:2181 --topic test --from-beginning

But after that I could see a consumer being created called "console-consumer-4158" and I accidentally closed the console.

How to terminate the running consumer?

Upvotes: 0

Views: 2655

Answers (1)

Natalia
Natalia

Reputation: 4532

  1. the process itself will be stopped after you terminate consumer.
  2. as you are using old consumer API, groupId (console-consumer-4158) + information about consumed offsets are stored in zookeeper. There is no process that automatically delete not-used groups ( see more)

Upvotes: 0

Related Questions