手动调整 offset
可以尝试手动调整 offset,定位成最新的:
kafka-consumer-groups.sh --bootstrap-server <KAFKA_BROKER> --group TO_WMS --reset-offsets --to-latest --execute
或将偏移量重置为最早:
kafka-consumer-groups.sh --bootstrap-server <KAFKA_BROKER> --group TO_WMS --reset-offsets --to-earliest --execute
然后重启消费者进程,让其从最新或最早的 offset 重新开始消费。