I am using zookeeper to get data from kafka. And here I always get data from last offset point. Is there any way to specify the time of offset to get old data?
There
Using the KafkaConsumer you can use Seek, SeekToBeginning and SeekToEnd to move around in the stream.
https://kafka.apache.org/0100/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html#seekToBeginning(java.util.Collection)
Also, If no partition is provided, it will seek to the first offset for all of the currently assigned partitions.