0%

Kafka存储在Zookeeper中的数据

Kafka 2.5.0 Zookeeper 3.5.7

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#App Config Dashboard (ACD) dump created on :Mon Dec 21 16:31:38 CST 2020
/admin=delete_topics=
/brokers/ids=188={"listener_security_protocol_map":{"PLAINTEXT":"PLAINTEXT"},"endpoints":["PLAINTEXT://10.138.16.188:9092"],"jmx_port":-1,"port":9092,"host":"10.138.16.188","version":4,"timestamp":"1599703895838"}
/brokers/ids=190={"listener_security_protocol_map":{"PLAINTEXT":"PLAINTEXT"},"endpoints":["PLAINTEXT://10.138.16.190:9092"],"jmx_port":-1,"port":9092,"host":"10.138.16.190","version":4,"timestamp":"1607913128925"}
/brokers/ids=191={"listener_security_protocol_map":{"PLAINTEXT":"PLAINTEXT"},"endpoints":["PLAINTEXT://10.138.16.191:9092"],"jmx_port":-1,"port":9092,"host":"10.138.16.191","version":4,"timestamp":"1607911938767"}
/brokers/topics/__consumer_offsets/partitions/0=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/10=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/11=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/12=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/13=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/14=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/15=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/16=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/17=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/18=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/19=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/1=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/20=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/21=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/22=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/23=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/24=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/25=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/26=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/27=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/28=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/29=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/2=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/30=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/31=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/32=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/33=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/34=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/35=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/36=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/37=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/38=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/39=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/3=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/40=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/41=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/42=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/43=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/44=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/45=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/46=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/47=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/48=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/49=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/4=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/5=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/6=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/7=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/__consumer_offsets/partitions/8=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/__consumer_offsets/partitions/9=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/bj-aliyun/partitions/0=state={"controller_epoch":4,"leader":188,"version":1,"leader_epoch":5,"isr":[190,188]}
/brokers/topics/bj-aliyun/partitions/10=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[190,188]}
/brokers/topics/bj-aliyun/partitions/11=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/bj-aliyun/partitions/1=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/bj-aliyun/partitions/2=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,188]}
/brokers/topics/bj-aliyun/partitions/3=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":5,"isr":[191,188]}
/brokers/topics/bj-aliyun/partitions/4=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[190,188]}
/brokers/topics/bj-aliyun/partitions/5=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/bj-aliyun/partitions/6=state={"controller_epoch":4,"leader":188,"version":1,"leader_epoch":5,"isr":[190,188]}
/brokers/topics/bj-aliyun/partitions/7=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/bj-aliyun/partitions/8=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,188]}
/brokers/topics/bj-aliyun/partitions/9=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":5,"isr":[191,188]}
/brokers/topics/compass-log/partitions/0=state={"controller_epoch":4,"leader":188,"version":1,"leader_epoch":7,"isr":[190,188]}
/brokers/topics/compass-log/partitions/10=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/compass-log/partitions/11=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,188]}
/brokers/topics/compass-log/partitions/1=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":5,"isr":[191,190]}
/brokers/topics/compass-log/partitions/2=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":5,"isr":[191,188]}
/brokers/topics/compass-log/partitions/3=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":7,"isr":[191,188]}
/brokers/topics/compass-log/partitions/4=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":5,"isr":[190,188]}
/brokers/topics/compass-log/partitions/5=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":5,"isr":[191,190]}
/brokers/topics/compass-log/partitions/6=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":5,"isr":[191,188]}
/brokers/topics/compass-log/partitions/7=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[190,188]}
/brokers/topics/compass-log/partitions/8=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/compass-log/partitions/9=state={"controller_epoch":4,"leader":188,"version":1,"leader_epoch":5,"isr":[190,188]}
/brokers/topics/compass-stack/partitions/0=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/compass-stack/partitions/1=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":2,"isr":[191]}
/brokers/topics/compass-stack/partitions/2=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/monitor/partitions/0=state={"controller_epoch":4,"leader":188,"version":1,"leader_epoch":5,"isr":[190,188]}
/brokers/topics/monitor/partitions/1=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/monitor/partitions/2=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,188]}
/brokers/topics/monitor/partitions/3=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":5,"isr":[191,188]}
/brokers/topics/monitor/partitions/4=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[190,188]}
/brokers/topics/monitor/partitions/5=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/monitor/partitions/6=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":1,"isr":[188,191]}
/brokers/topics/monitor/partitions/7=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[188,190]}
/brokers/topics/monitor/partitions/8=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/qd-cmcc-dts/partitions/0=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":4,"isr":[191,190]}
/brokers/topics/qd-cmcc-dts/partitions/1=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,188]}
/brokers/topics/qd-cmcc-dts/partitions/2=state={"controller_epoch":4,"leader":188,"version":1,"leader_epoch":5,"isr":[190,188]}
/brokers/topics/qd-cmcc-dts/partitions/3=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[190,188]}
/brokers/topics/qd-cmcc-dts/partitions/4=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/qd-cmcc-dts/partitions/5=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":5,"isr":[191,188]}
/brokers/topics/qd-ctcc-dts/partitions/0=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/qd-ctcc-dts/partitions/1=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,188]}
/brokers/topics/qd-ctcc-dts/partitions/2=state={"controller_epoch":4,"leader":188,"version":1,"leader_epoch":5,"isr":[190,188]}
/brokers/topics/qd-ctcc-dts/partitions/3=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[190,188]}
/brokers/topics/qd-ctcc-dts/partitions/4=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/qd-ctcc-dts/partitions/5=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":5,"isr":[191,188]}
/brokers/topics/qd-ctcc/partitions/0=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,188]}
/brokers/topics/qd-ctcc/partitions/1=state={"controller_epoch":4,"leader":188,"version":1,"leader_epoch":5,"isr":[190,188]}
/brokers/topics/qd-ctcc/partitions/2=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/qd-ctcc/partitions/3=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/qd-ctcc/partitions/4=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":5,"isr":[191,188]}
/brokers/topics/qd-ctcc/partitions/5=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[190,188]}
/brokers/topics/qd-hongdao/partitions/0=state={"controller_epoch":4,"leader":188,"version":1,"leader_epoch":5,"isr":[190,188]}
/brokers/topics/qd-hongdao/partitions/1=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/qd-hongdao/partitions/2=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,188]}
/brokers/topics/qd-hongdao/partitions/3=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":5,"isr":[191,188]}
/brokers/topics/qd-hongdao/partitions/4=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[190,188]}
/brokers/topics/qd-hongdao/partitions/5=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/sg-aws/partitions/0=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/sg-aws/partitions/1=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,188]}
/brokers/topics/sg-aws/partitions/2=state={"controller_epoch":4,"leader":188,"version":1,"leader_epoch":5,"isr":[190,188]}
/brokers/topics/sg-aws/partitions/3=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":3,"isr":[190,188]}
/brokers/topics/sg-aws/partitions/4=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":3,"isr":[191,190]}
/brokers/topics/sg-aws/partitions/5=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":5,"isr":[191,188]}
/brokers/topics/test/partitions/0=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":2,"isr":[188]}
/brokers/topics/test/partitions/1=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/test/partitions/2=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":2,"isr":[191]}
/brokers/topics/test/partitions/3=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":0,"isr":[188]}
/brokers/topics/test/partitions/4=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/test/partitions/5=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":2,"isr":[191]}
/brokers/topics/test/partitions/6=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":0,"isr":[188]}
/brokers/topics/test/partitions/7=state={"controller_epoch":4,"leader":190,"version":1,"leader_epoch":2,"isr":[190]}
/brokers/topics/test/partitions/8=state={"controller_epoch":3,"leader":191,"version":1,"leader_epoch":2,"isr":[191]}
/brokers/topics/test/partitions/9=state={"controller_epoch":3,"leader":188,"version":1,"leader_epoch":0,"isr":[188]}
/brokers=seqid=
/cluster=id={"version":"1","id":"9uLENPNJSXWUUSXKxN_OoA"}
/config/topics=__consumer_offsets={"version":1,"config":{"segment.bytes":"104857600","compression.type":"producer","cleanup.policy":"compact"}}
/config/topics=bj-aliyun={"version":1,"config":{}}
/config/topics=compass-log={"version":1,"config":{}}
/config/topics=compass-stack={"version":1,"config":{}}
/config/topics=monitor={"version":1,"config":{}}
/config/topics=qd-cmcc-dts={"version":1,"config":{}}
/config/topics=qd-ctcc={"version":1,"config":{}}
/config/topics=qd-ctcc-dts={"version":1,"config":{}}
/config/topics=qd-hongdao={"version":1,"config":{}}
/config/topics=sg-aws={"version":1,"config":{}}
/config/topics=test={"version":1,"config":{}}
/config=brokers=
/config=changes=
/config=clients=
/config=users=
/=consumers=
/=controller={"version":1,"brokerid":188,"timestamp":"1607913119862"}
/=controller_epoch=4
/=isr_change_notification=
/=latest_producer_id_block={"version":1,"broker":190,"block_start":"5000","block_end":"5999"}
/=log_dir_event_notification=

需要注意的是:

__consumer_offsets这个topic是由kafka自动创建的,默认50个partition,但每个partition没有副本,存在单点故障。当出现__consumer_offsets丢失的时候,所有的消费者都就停止消费了。

推荐阅读:

looking-at-kafka-s-consumers-offsets

欢迎关注我的其它发布渠道