其他分享
首页 > 其他分享> > kafka查看主题

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]#

标签:Partition,查看,Replicas,--,Isr,主题,kafka,test,Leader
来源: https://www.cnblogs.com/yitian395/p/16674037.html