Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.11 KB

File metadata and controls

37 lines (28 loc) · 1.11 KB

Kafka plain java

Using plain java to create a simple producer and consumer

Get started

  1. Compile project by running the following command
mvn clean install assembly:single

the bundle file is demo.jar in target folder

  1. Start kafka server

First, we need to start zookeeper

bin/zookeeper-server-start.sh config/zookeeper.properties

then start kafka server

bin/kafka-server-start.sh config/server.properties

Demos:

References