Note: Run from the directory of this README.md
- Terminal 1: Start docker-compose stack
docker-compose up -d
- Terminal 2: Produce some messages via kcat to the input topic
echo "Hello world" | kcat -P -b localhost:19092 -t streams-plaintext-input
echo "What a wonderful world" | kcat -P -b localhost:19092 -t streams-plaintext-input
echo "What a day to say hello" | kcat -P -b localhost:19092 -t streams-plaintext-input
- Terminal 3: Start the example app
../../gradlew run
- Terminal 4: Start a console-consumer on the output topic
kcat -C -q -b localhost:19092 -t streams-wordcount-output -K:: -s key=s -s value=q
Remove docker-compose stack (run from the directory of this README.md)
docker-compose down