This is a simple example application to showcase how to talk with Apache Kafka in Scala.
If you have installed zookeeper, start it, or run the command:
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
kafka-server-start /usr/local/etc/kafka/server.properties
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 10 --topic test_topic
sbt assembly
java -cp ./target/scala-2.11/apache-kafka-example-assembly-1.0.jar com.github.dietmax.ProducerExample
java -cp ./target/scala-2.11/apache-kafka-example-assembly-1.0.jar com.github.dietmax.ConsumerExample