I write Kafka consumed messages on a file (backup.log). To do this, I created a service on my CentOS which run kafka-console-consumer.sh --bootstrap-server kafka1:9092
kafka-console-consumer.sh --bootstrap-server kafka1:9092