摘要: import threadingfrom kafka import KafkaConsumerthreads = []class MyThread(threading.Thread): def __init__(self, threadName, keyName): threading.Thread 阅读全文
posted @ 2017-07-30 22:59 MichaelYing 阅读(1752) 评论(0) 推荐(0) 编辑
摘要: import threadingimport timeimport randomfrom kafka import KafkaProducerproducer = KafkaProducer(bootstrap_servers='192.168.1.10:9092')threads = []clas 阅读全文
posted @ 2017-07-30 22:58 MichaelYing 阅读(1419) 评论(0) 推荐(0) 编辑