docker kafka 修改hostname导致的问题
昨天发现开发环境的3台kafka无法消费,所以今日kafka的容器执行如下语句 bash-4.4# ./kafka-topics.sh --describe --zookeeper 192.168.0.170:2181 --topic nova2_plantree_topic Topic:nova2_plantree_topic PartitionCount:3 ReplicationFactor:3 Configs: Topic: nova2_plantree_topic Partition: 0 Leader: 2 Replicas: 2,1,0 Isr: 2,1,0 Topic: nova2_plantree_topic Partition: 1 Leader: 0 Replicas: 0,2,1 Isr: 0,2,1 Topic: nova2_plantree_topic Partition: 2 Leader: 1 Replicas: 1,0,2 Isr: 1,0,2 发现topic是好的 然后执行 bash-4.4# ./kafka-consumer-groups.sh --bootstrap-server 192.168.0.170:9092 --list 发现消费者group是空的,或者直接报错 然后查看java的消费者日志,报错很多 2019-03-13 09