Hi
I am using cp-kafka:3.2.0 in docker, I need to reset offsets for all my group-id created in kafka. I am using below coomand but It’s not working
kafka-consumer-groups --bootstrap-server localhost:9092 --group logstash --reset-offsets --shift-by -2 --execute --topic topic-logstash
Exception in thread “main” joptsimple.UnrecognizedOptionException: reset-offsets is not a recognized option
at joptsimple.OptionException.unrecognizedOption(OptionException.java:108)
at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:510)
at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56)
at joptsimple.OptionParser.parse(OptionParser.java:396)
at kafka.admin.ConsumerGroupCommand$ConsumerGroupCommandOptions.(ConsumerGroupCommand.scala:531)
at kafka.admin.ConsumerGroupCommand$.main(ConsumerGroupCommand.scala:47)
at kafka.admin.ConsumerGroupCommand.main(ConsumerGroupCommand.scala)
Please someone guide me,