Created
September 26, 2022 11:20
-
-
Save garystafford/b0ca5c3ed906e7e299a1673c889b903f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# establish an interactive session with the kafka container | |
KAFKA_CONTAINER=$(docker container ls --filter name=streaming-stack_kafka.1 --format "{{.ID}}") | |
docker exec -it ${KAFKA_CONTAINER} bash | |
# set environment variables used by jobs | |
export BOOTSTRAP_SERVERS="localhost:9092" | |
export OUTPUT_TOPIC="demo.purchases.enriched"; | |
# read topics from beginning | |
kafka-console-consumer.sh \ | |
--topic $OUTPUT_TOPIC --from-beginning \ | |
--bootstrap-server $BOOTSTRAP_SERVERS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment