0

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?

Matthias J. Sax
  • 59,682
  • 7
  • 117
  • 137
Pavithra K C
  • 75
  • 1
  • 10

1 Answers1

0
  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)
Community
  • 1
  • 1
Natalia
  • 4,362
  • 24
  • 25