How To Reset Offset

Go to kafka directory
Go to bin folder, there should exist file name kafka-consumer-groups.sh
Close connection
Run this command
SQL
Copy
./kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group mtarget-smtp --reset-offsets --to-earliest --topic event --execute