Kafka - with Java/Python
What is wrong with this Kafka consumer code that causes it to never print messages?
consumer = KafkaConsumer('topic2', bootstrap_servers='localhost:9092', auto_offset_reset='latest')
for message in consumer:
print(message.value.decode())