This file contains hidden or 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
# | |
# Get 1 single record from topic by partition Nr and Offset Nr | |
# | |
# Hint 1: Execute using running schema-registry container | |
# Hint 2: If possible, stop any producers that might cause kafka to delete or tombstone records in this topic (don't really know if tombstone records become inaccessible, but... just to be sure) | |
# | |
docker exec -it schema-registry kafka-avro-console-consumer --bootstrap-server localhost:9092 --topic topic-name --max-messages 1 --property print.key=true --offset 71403579 --partition 1 | |