How to change or reset consumer offset in Kafka?
In this tutorial, we will go through the step by step process to reset the offset of the Kafka consumer group
kubectl get pods -n kafka-clusterkubectl exec -it kafka-v2-0 -n kafka-clusterkafka-consumer-groups --bootstrap-server kafka-v2.kafka-cluster:9092 --group <group_id> --describekubectl scale --replicas=0 deployment <deployment_name> -n egovkafka-consumer-groups --bootstrap-server kafka-v2.kafka-cluster:9092 --group <group_id> --topic <topic_name> --reset-offsets --to-datetime 2021-06-25T21:22:39.306 --executekubectl scale --replicas=2 deployment <deployment_name> -n egov
Last updated
Was this helpful?