from kafka import KafkaConsumer import json import io if __name__ == \'__main__\': # consumer = KafkaConsumer( # \'ldt_lm_mytable\', # bootstrap_servers