Kafka Partition Leader选主机制
https://blog.csdn.net/qq_27384769/article/details/80115392
kafka leader选举机制原理
https://blog.csdn.net/yanshu2012/article/details/54894629
kafka分区选主机制
https://blog.csdn.net/lixiang987654321/article/details/99674419
-------------------------------------------------------------------Data highway
zkcli -server lnyfxttap2u.nam.nsroot.net:2181
kafka-topics.bat --describe --zookeeper lnyfxttap2u.nam.nsroot.net:2181 --topic icg-170484-tm.discounting-override-input
C:Userslt32806softwarekafka_2.10-0.10.2.1inwindows>kafka-topics.bat --describe --zookeeper lnyfxttap2u.nam.nsroot.net:2181 --topic icg-170484-tm.discounting-override-input
Topic:icg-170484-tm.discounting-override-input PartitionCount:4 ReplicationFactor:3 Configs:retention.ms=604800000,min.insync.replicas=2,cleanup.policy=delete,retention.bytes=104857600
Topic: icg-170484-tm.discounting-override-input Partition: 0 Leader: 3 Replicas: 3,6,1 Isr: 6,3,1
Topic: icg-170484-tm.discounting-override-input Partition: 1 Leader: 6 Replicas: 6,1,4 Isr: 6,4,1
Topic: icg-170484-tm.discounting-override-input Partition: 2 Leader: 1 Replicas: 1,4,2 Isr: 4,1,2
Topic: icg-170484-tm.discounting-override-input Partition: 3 Leader: 4 Replicas: 4,2,5 Isr: 4,2,5
get /controller
get /brokers/topics/icg-170484-tm.discounting-override-input/partitions/0/state
[zk: lnyfxttap2u.nam.nsroot.net:2181(CONNECTED) 9] get /brokers/topics/icg-170484-tm.discounting-override-input/partitions/0/state
{"controller_epoch":1785,"leader":3,"version":1,"leader_epoch":68,"isr":[6,3,1]}
cZxid = 0x18400008657
ctime = Fri Aug 30 17:29:54 CST 2019
mZxid = 0x1b5000062e5
mtime = Sat Nov 23 00:53:54 CST 2019
pZxid = 0x18400008657
cversion = 0
dataVersion = 122
aclVersion = 25
ephemeralOwner = 0x0
dataLength = 80
numChildren = 0