kafka查看主题
[root@master bin]# ./kafka-topics.sh --bootstrap-server 192.168.1.101:9092 --describe --topic test
Topic: test TopicId: fTJwpLYfQXqsP0Xv_q5tHg PartitionCount: 3 ReplicationFactor: 3 Configs: segment.bytes=1073741824
Topic: test Partition: 0 Leader: 3 Replicas: 3,1,2 Isr: 3,1,2
Topic: test Partition: 1 Leader: 1 Replicas: 1,2,3 Isr: 1,2,3
Topic: test Partition: 2 Leader: 2 Replicas: 2,3,1 Isr: 2,3,1
[root@master bin]# ./kafka-topics.sh --bootstrap-server 192.168.1.100:9092 --describe --topic test
Topic: test TopicId: fTJwpLYfQXqsP0Xv_q5tHg PartitionCount: 3 ReplicationFactor: 3 Configs: segment.bytes=1073741824
Topic: test Partition: 0 Leader: 3 Replicas: 3,1,2 Isr: 3,1,2
Topic: test Partition: 1 Leader: 1 Replicas: 1,2,3 Isr: 1,2,3
Topic: test Partition: 2 Leader: 2 Replicas: 2,3,1 Isr: 2,3,1
[root@master bin]# ./kafka-topics.sh --bootstrap-server 192.168.1.102:9092 --describe --topic test
Topic: test TopicId: fTJwpLYfQXqsP0Xv_q5tHg PartitionCount: 3 ReplicationFactor: 3 Configs: segment.bytes=1073741824
Topic: test Partition: 0 Leader: 3 Replicas: 3,1,2 Isr: 3,1,2
Topic: test Partition: 1 Leader: 1 Replicas: 1,2,3 Isr: 1,2,3
Topic: test Partition: 2 Leader: 2 Replicas: 2,3,1 Isr: 2,3,1
[root@master bin]#

浙公网安备 33010602011771号