Skip to content

shinkou/kafkaexamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Examples

How To Compile

$ mvn clean package

How To Run

Java consumer example

$ java -cp ./target/kafkaexamples-0.1.0-jar-with-dependencies.jar com.github.shinkou.kafkaexamples.java.SampleConsumer

Java producer example

$ java -cp ./target/kafkaexamples-0.1.0-jar-with-dependencies.jar com.github.shinkou.kafkaexamples.java.SampleProducer MSG1 MSG2 MSG3

Scala consumer example

$ java -cp ./target/kafkaexamples-0.1.0-jar-with-dependencies.jar com.github.shinkou.kafkaexamples.scala.SampleConsumer

Scala producer example

$ java -cp ./target/kafkaexamples-0.1.0-jar-with-dependencies.jar com.github.shinkou.kafkaexamples.scala.SampleProducer MSG1 MSG2 MSG3

About

Kafka sample producers and consumers in Java and Scala

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published