I am consuming messages from Kafka topic and store it in a local list like this:
datalist=[] consumer = kafka.KafkaConsumer(\'maher2\',bootstrap_servers=[\'19