dyrnq / Stream-Data

This is a project for some basic big data exercise.
0 stars 0 forks source link

Error: Assignments can only be reset if the group 'group-1' is inactive, but the current state is Stable. #37

Open dyrnq opened 10 months ago

dyrnq commented 10 months ago
kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group group-1 --reset-offsets --to-earliest --topic abc -execute
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)

Error: Assignments can only be reset if the group 'group-1' is inactive, but the current state is Stable.

解决by: 要把程序中的consumer停掉,然后再执行这句。

dyrnq commented 10 months ago
kafka-consumer-groups.sh --bootstrap-server localhost:9092 --delete --group group-1
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)

Error: Deletion of some consumer groups failed:
* Group 'group-1' could not be deleted due to: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.GroupNotEmptyException: The group is not empty.