kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shahab <shahab.mok...@gmail.com>
Subject How to read messages from Kafka by specific time?
Date Wed, 05 Aug 2015 09:11:19 GMT
Hi,

Probably this question has been already asked before, but I couldn't find
it,

I would like to fetch data from kafka by timestamp, and according to Kafk
FAQ (
https://cwiki.apache.org/confluence/display/KAFKA/FAQ#FAQ-HowdoIaccuratelygetoffsetsofmessagesforacertaintimestampusingOffsetRequest
?)
"Kafka allows querying offsets of messages by time", I tried to use
UnixTimeStamp instead  in the offset request, but every time I got an empty
array, simply it didn't work.

Based on my google search this is not possible, but Kafka FAQ states that
this is possible!
Does any one know how to do this? I do appreciate it.

best,
/Shahab

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message