Kafka - with Java/Python
Identify the error in this Kafka SDK consumer code snippet:
consumer = KafkaConsumer('my_topic', bootstrap_servers='localhost:9092')
for message in consumer:
print(message.value.decode('utf-8'))
consumer.close()