A Simple producer/consumer clients example of kafka, you should have kafka up and running, and you change the configs here.
To run the producer :
$ java -jar target/kafka-example-jar-with-dependencies.jar produce
To run the consumer :
$ java -jar target/kafka-example-jar-with-dependencies.jar consume