kaeff / streamspoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

streamspoc

Playing around with kafka and kafka streams

Uses docker to run kafka, but atm relies on the kafka console scripts

Installation

Prerequisites

  1. Docker
  2. Docker Compose
docker-compose up -d

Usage

bin/kafka-topics-list.sh streams-plaintext-input
cat examples/sample-input.txt | bin/kafka-console-producer.sh streams-plaintext-input
# Run main class `WordCount`
bin/kafka-console-consumer.sh streams-wordcount-counts-store-repartition

About


Languages

Language:Java 89.5%Language:Shell 10.5%