首页 > 其他 > 详细

Kafka自我学习3-Scalable

时间:2018-05-21 20:14:48      阅读:179      评论:0      收藏:0      [点我收藏+]

1.After created the zookeeper cluster, we found all broker cluster topic can be find in zoo1, zoo2, zoo3.

[root@zoo1 zookeeper]# /root/kafka/bin/kafka-topics.sh  --describe --zookeeper zoo1:2181
Topic:my-replicated-topic    PartitionCount:1    ReplicationFactor:3    Configs:
    Topic: my-replicated-topic    Partition: 0    Leader: 1    Replicas: 2,0,1    Isr: 1
Topic:test    PartitionCount:1    ReplicationFactor:1    Configs:
    Topic: test    Partition: 0    Leader: 1    Replicas: 1    Isr: 1
Topic:test123    PartitionCount:1    ReplicationFactor:1    Configs:
    Topic: test123    Partition: 0    Leader: 1    Replicas: 1    Isr: 1
[root@zoo1 zookeeper]# /root/kafka/bin/kafka-topics.sh  --describe --zookeeper zoo2:2181
Topic:my-replicated-topic    PartitionCount:1    ReplicationFactor:3    Configs:
    Topic: my-replicated-topic    Partition: 0    Leader: 1    Replicas: 2,0,1    Isr: 1
Topic:test    PartitionCount:1    ReplicationFactor:1    Configs:
    Topic: test    Partition: 0    Leader: 1    Replicas: 1    Isr: 1
Topic:test123    PartitionCount:1    ReplicationFactor:1    Configs:
    Topic: test123    Partition: 0    Leader: 1    Replicas: 1    Isr: 1
[root@zoo1 zookeeper]# /root/kafka/bin/kafka-topics.sh  --describe --zookeeper zoo3:2181
Topic:my-replicated-topic    PartitionCount:1    ReplicationFactor:3    Configs:
    Topic: my-replicated-topic    Partition: 0    Leader: 1    Replicas: 2,0,1    Isr: 1
Topic:test    PartitionCount:1    ReplicationFactor:1    Configs:
    Topic: test    Partition: 0    Leader: 1    Replicas: 1    Isr: 1
Topic:test123    PartitionCount:1    ReplicationFactor:1    Configs:
    Topic: test123    Partition: 0    Leader: 1    Replicas: 1    Isr: 1

2.Even we shutdown the zoo or any leader of zookeeper cluster, we can see the topic still can be access on other zoo server

Kafka自我学习3-Scalable

原文:https://www.cnblogs.com/oskb/p/9069043.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!