>>> from kafka import KafkaConsumer
>>> c = KafkaConsumer('DISPATCH_33010001', bootstrap_servers='10.0.10.224:14002,10.0.10.227:14002,10.0.10.228:14002')
>>> for m in c:
... print m
(空4格,两次回车)
>>> from kafka import KafkaConsumer
>>> c = KafkaConsumer('DISPATCH_33010001', bootstrap_servers='10.0.10.224:14002,10.0.10.227:14002,10.0.10.228:14002')
>>> for m in c:
... print m
(空4格,两次回车)
本文标题:Python查看kafka数据
本文链接:https://www.haomeiwen.com/subject/lpdhqqtx.html
网友评论