摘要:
import threadingfrom kafka import KafkaConsumerthreads = []class MyThread(threading.Thread): def __init__(self, threadName, keyName): threading.Thread 阅读全文
摘要:
import threadingimport timeimport randomfrom kafka import KafkaProducerproducer = KafkaProducer(bootstrap_servers='192.168.1.10:9092')threads = []clas 阅读全文