I am running kafka locally following instructions on quick start guide here,
and then I defined my consumer group configuration in config/consumer.properties
so that my consumer can pick messages from the defined group.id
Running the following command,
bin/kafka-consumer-groups.sh --list --bootstrap-server localhost:9092
results in,
test-consumer-group <-- group.id defined in conf/consumer.properties
console-consumer-67807 <-- when connecting to kafka via kafka-console-consumer.sh
I am able to connect to kafka via a python based consumer that is configured to use the provide group.id
i.e test-consumer-group
First of all, I am not able to understand how/when kafka creates consumer groups. It seems it loads the conf/consumer.properties
at some point of time and additionally it implicitly creates consumer-group (in my case console-consumer-67807
) when connecting via kafka-console-consumer.sh
.
How can I explicitly create my own consumer group, lets say my-created-consumer-group
?