Case: Meetup Reservation (http://stream.meetup.com/2/rsvps)
Already set in each files inside kafka-properties
- This is maven project, make sure your device is installed maven.
- Download apache kafka here, then unzip. In this case I used
kafka_2.12-1.1.0
. - Copy all files in
kafka-properties
folder, then paste intoconfig
folder which located in apache kafka folder. - Run zookeeper
./bin/zookeeper-server-start.sh config/zookeeper.properties
- Run kafka
./bin/kafka-server-start.sh config/server.properties
- Create topic
bin/kafka-topics.sh --create --zookeeper localhost:3000 --replication-factor 1 --partitions 1 --topic test
- Run
MeetupRsvpProducer.scala
to start send messagemeetup rsvp data
into kafka. - Run
MeetupRsvpConsumer.scala
to dump outmeetup rsvp data
.