Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Learning Kafka 0.8.2

Having a heck of a time finding some simple getting started samples with the new release. Such things as KafkaProducer differ from the Producer examples and much of the older code on the web doesn't seem to compile the same.

Any guidance? The Apache Kafka site has zero examples of producers in Java.

Please advise.

like image 467
Bruno Avatar asked Feb 27 '15 23:02

Bruno


1 Answers

Try to have a look at the following example: https://github.com/CameronGregory/kafka/blob/master/TestProducer.java

like image 71
halafi Avatar answered Oct 02 '22 01:10

halafi