Skip to content

jfr2102/kafka-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kafka-generator

Meant to generate simple test data for example topology in: jfr212/storm-topology Included in kafka image in jfr212/storm-cluster

Configuration:

  • Messages are sent in round robin to partitions of "mytopic" Kafka topic. Simply edit .send() methods parms accordingly
  • Format: JSON style String: e.g: {"venue": {"country": "US", "city": "New York"}, "sensordata": "100"}

Build:

mvn assembly:assembly

Run:

java -jar jarname-with-dependencies.jar

Arguments:

-benchmark message_count sleep_short sleep_long microbatch_size:

Sends 2*message_count messages in 2 intervals.

Microbatches of microbatch_size are generated with sleeping time of sleep_short ms in between.

Sleep sleep_long ms before last message of each partition within the 2 sending intervals (useful for event-time watermarks in SPS)

-throughput

Send messages in intervals with increasing throughput (e.g. to benchmark sustainable throughput of SPS)

About

Generate test data for kafka cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages