Seek within partition
20 mins
On a terminal, run Kafkacat. Observe the offsets and messages.
$ kafkacat -q -C -b localhost:9092 -t test -f 'Partition %t[%p], offset: %o, key: %k, value: %s\n'
- Inspect file :
src/main/java/x/lab05_offsets/SeekingConsumer.java
- Fix the TODO items Use reference Java API for Consumer
- Run the producer in Eclipse,
- Right click on file
- Run as 'Java Application'
Observe the behavior