kafka/examples
UVN 1667c16be1 MINOR: Read configuration fields from ProducerConfig in example (#4601)
Reading the configuration field names from ProducerConfig class and taking the key and value serializer names from class name directly instead of hardcoding.
2018-02-21 08:58:35 -08:00
..
bin
src/main/java/kafka/examples MINOR: Read configuration fields from ProducerConfig in example (#4601) 2018-02-21 08:58:35 -08:00
README

README

This directory contains examples of client code that uses kafka.

To run the demo: 

   1. Start Zookeeper and the Kafka server
   2. For simple consumer demo, `run bin/java-simple-consumer-demo.sh`
   3. For unlimited sync-producer-consumer run, `run bin/java-producer-consumer-demo.sh sync`
   4. For unlimited async-producer-consumer run, `run bin/java-producer-consumer-demo.sh`