When I check for consumer lag, it shows that a particular consumer-id
is running from a particular host consuming from a topic.
But when I go to that host there is no such consumer running.
How do I kill this consumer-id
, so that I can reset consumer offset for the group that its part of.
Kafka server version: 0.11.0.1
Kafka client version(stuck): 0.10.0.2
This consumer-id
got stuck in the first place as it was not able to consume messages because of some messages having headers in Kafka.
I've already tried the following:
- Consuming from a different host and different Kafka version, it consumes messages but the consumer-id, host does not change.
- Restarting
kafka
broker which is the leader for that topic. - Changing security groups to prevent the host from connecting to my broker.