This Project covers how to use Spring Boot with Spring Kafka to Publish JSON/String message to a Kafka topic. You can find more information from Wiki Page.
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
bin/kafka-topics.sh --list --zookeeper localhost:2181
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic Location_json
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic Location_json --from-beginning
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic Location_json