python 在一定时间段获取kafka数据

from pykafka import KafkaClient from pykafka.common import OffsetType import datetime def KafkaDownloader(host_, topic_, group_id_): client = K...

2018-10-09 18:58:58

阅读数 473

评论数 0

python操作kafka

1、查看kafka集群中所有的topic from pykafka import KafkaClient client = KafkaClient(hosts="13.3.0.0:9092,1.3.2.17:9092,13.7.2.94:9092,13.7.2.15:9092...

2018-09-27 17:32:16

阅读数 156

评论数 0

pykafka 中的broker判断kafka集群的所有ip,topic,

from pykafka import KafkaClient client = KafkaClient(hosts="13.3.0.0:9092,1.3.2.17:9092,13.7.2.94:9092,13.7.2.15:9092") # client ...

2018-09-27 17:23:28

阅读数 185

评论数 0

python 查看kafka发送的消息格式及消息内容

from pykafka import KafkaClient client = KafkaClient(hosts="10.37.22.176:9092") topic = client.topics[b'rtz_am_queue'] #topic名...

2018-09-03 22:49:56

阅读数 584

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭