kafka/examples
Jun Rao a5fb217293 new consumer request format; patched by Prashanth Menon; reviewed by Jun Rao and Jay Kreps; KAFKA-240
git-svn-id: https://svn.apache.org/repos/asf/incubator/kafka/branches/0.8@1243407 13f79535-47bb-0310-9956-ffa450edef68
2012-02-13 03:58:37 +00:00
..
bin KAFKA-141 Check and make sure that the files that have been donated have been updated to reflect the new ASF copyright;patched by nehanarkhede; reviewd by jjkoshy 2011-10-07 19:51:28 +00:00
src/main/java/kafka/examples new consumer request format; patched by Prashanth Menon; reviewed by Jun Rao and Jay Kreps; KAFKA-240 2012-02-13 03:58:37 +00:00
README Initial checkin of Kafka to Apache SVN. This corresponds to 709afe4ec7 except that git specific files have been removed and code has been put into trunk/branches/site/etc. This is just a copy of master, branches and history are not being converted since we can't find a good tool for it. 2011-08-01 23:41:24 +00:00

README

This directory contains examples of client code that uses kafka.

The default target for ant is kafka.examples.KafkaConsumerProducerDemo which sends and receives 
messages from Kafka server.

In order to run demo from SBT:
   1. Start Zookeeper and the Kafka server
   2. ./sbt from top-level kafka directory
   3. Switch to the kafka java examples project -> project Kafka Java Examples
   4. execute run -> run
   5. For unlimited producer-consumer run, select option 1
      For simple consumer demo, select option 2

To run the demo using scripts: 

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