确实是只有3节点是好的,通过 ls /brokers/ids 查看也是只有3
 
                        
                        
                    
                    
                    
                    
                    
                    
                你好,结果是:
./kafka-topics.sh --describe --zookeeper 172.18.2.8:2181
Topic:__consumer_offsets    PartitionCount:50    ReplicationFactor:1    Configs:segment.bytes=104857600,cleanup.policy=compact,compression.type=producer
    Topic: __consumer_offsets    Partition: 0    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 1    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 2    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 3    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 4    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 5    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 6    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 7    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 8    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 9    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 10    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 11    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 12    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 13    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 14    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 15    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 16    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 17    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 18    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 19    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 20    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 21    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 22    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 23    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 24    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 25    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 26    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 27    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 28    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 29    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 30    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 31    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 32    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 33    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 34    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 35    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 36    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 37    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 38    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 39    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 40    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 41    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 42    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 43    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 44    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 45    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsetsconsumer_offsets    Partition: 46    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets    Partition: 47    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets __consumer_offsets    Partition: 48    Leader: 3    Replicas: 3    Isr: 3
    Topic: __consumer_offsets __consumer_offsets    Partition: 49    Leader: 3    Replicas: 3    Isr: 3
Topic:alarm    PartitionCount:3    ReplicationFactor:1    Configs:
    Topic: alarm    Partition: 0    Leader: 3    Replicas: 3    Isr: 3
    Topic: alarm    Partition: 1    Leader: 3    Replicas: 3    Isr: 3
    Topic: alarm    Partition: 2    Leader: 3    Replicas: 3    Isr: 3
Topic:status    PartitionCount:3    ReplicationFactor:1    Configs:
    Topic: status    Partition: 0    Leader: 3    Replicas: 3    Isr: 3
    Topic: status    Partition: 1    Leader: 3    Replicas: 3    Isr: 3
    Topic: status    Partition: 2    Leader: 3    Replicas: 3    Isr: 3
Topic:order    PartitionCount:1    ReplicationFactor:1    Configs:
    Topic: order    Partition: 0    Leader: 3    Replicas: 3    Isr: 3
Topic:logout    PartitionCount:1    ReplicationFactor:1    Configs:
    Topic: logout    Partition: 0    Leader: 3    Replicas: 3    Isr: 3
 
                        
                        https://www.orchome.com/454
bin/kafka-topics.sh --describe --zookeeper