Skip to content

Simple utiltity to produce messages to a Kafka topic.

Notifications You must be signed in to change notification settings

BillFarber/KafkaProducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KafkaProducer

This is a small Java project for generating test messages to be sent to a Kafka topic.

Usage

usage: kafka-producer
 -c,--threads <arg>    Thread Count
 -h,--host <arg>       Kafka Host & IP list
 -m,--messages <arg>   Messages Count
 -t,--topic <arg>      Topic Name

Example

To run 4 threads producing 5 messages each and send them to a topic named 'marklogic' on a server named 'myKafka'

java -jar ./kafka-producer-1.0-SNAPSHOT.jar -c 4 -m 5 -h myKafka:9092 -t marklogic

About

Simple utiltity to produce messages to a Kafka topic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages