Hi Sourav, yes you can do that.  Take a look at the Simple Consumer API
https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+SimpleConsumer+Exampleand
the SimpleConsumerShell
https://github.com/apache/kafka/blob/0.8/core/src/main/scala/kafka/tools/SimpleConsumerShell.scalauses
it as an implementation example (sample code) to use.

/*******************************************
 Joe Stein
 Founder, Principal Consultant
 Big Data Open Source Security LLC
 http://www.stealth.ly
 Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
********************************************/


On Wed, Feb 19, 2014 at 9:21 AM, Sourav Chandra <
[email protected]> wrote:

> Hi,
>
> Is it possible to replay only specific message in Kafka?
>
> For example message offsets are 1,2,3,4,5,6
>
> a) Is it possible to replay only message with offset 3?
> b) is it possible to replay messages from [1-4] and 6?
>
> Thanks,
> Sourav
>
> --
>
> Sourav Chandra
>
> Senior Software Engineer
>
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
>
> [email protected]
>
> o: +91 80 4121 8723
>
> m: +91 988 699 3746
>
> skype: sourav.chandra
>
> Livestream
>
> "Ajmera Summit", First Floor, #3/D, 68 Ward, 3rd Cross, 7th C Main, 3rd
> Block, Koramangala Industrial Area,
>
> Bangalore 560034
>
> www.livestream.com
>

Reply via email to