Skip to content

Commit

Permalink
KAFKA-9922: Update demo instructions in examples README (apache#8559)
Browse files Browse the repository at this point in the history
Class kafka.examples.SimpleConsumerDemo was removed. But the java-simple-consumer-demo.sh was not removed and README was not updated.

This commit removes java-simple-consumer-demo.sh and updates the demo instructions in the examples README. 

Author: Jiamei Xie <[email protected]>
Reviewers: Konstantine Karantasis <[email protected]>
  • Loading branch information
jiameixie authored Apr 30, 2020
1 parent 0ee19e8 commit 8a83025
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 deletions.
15 changes: 7 additions & 8 deletions examples/README
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
This directory contains examples of client code that uses kafka.

To run the demo:
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`
5. For exactly once demo run, `run bin/exactly-once-demo.sh 6 3 50000`,
2. For unlimited sync-producer-consumer run, `run bin/java-producer-consumer-demo.sh sync`
3. For unlimited async-producer-consumer run, `run bin/java-producer-consumer-demo.sh`
4. For exactly once demo run, `run bin/exactly-once-demo.sh 6 3 50000`,
this means we are starting 3 EOS instances with 6 topic partitions and 50000 pre-populated records.
6. Some notes for exactly once demo:
6.1. The Kafka server has to be on broker version 2.5 or higher.
6.2. You could also use Intellij to run the example directly by configuring parameters as "Program arguments"
5. Some notes for exactly once demo:
5.1. The Kafka server has to be on broker version 2.5 or higher.
5.2. You could also use Intellij to run the example directly by configuring parameters as "Program arguments"
22 changes: 0 additions & 22 deletions examples/bin/java-simple-consumer-demo.sh

This file was deleted.

0 comments on commit 8a83025

Please sign in to comment.