RE: How to always consume from latest offset in kafka-streams

2018-01-24 Thread Hanchi Wang
.ts...@hk.daiwacm.com> Sent: Monday, January 22, 2018 6:57 PM To: users@kafka.apache.org<mailto:users@kafka.apache.org> Subject: RE: How to always consume from latest offset in kafka-streams If you are doing dynamic assignment ( consumer.subscription), you can try this in your code: K

RE: How to always consume from latest offset in kafka-streams

2018-01-22 Thread TSANG, Brilly
--- From: Xin Li [mailto:xin...@trivago.com] Sent: Tuesday, January 23, 2018 3:01 AM To: users@kafka.apache.org Subject: Re: How to always consume from latest offset in kafka-streams This? consumer.auto.offset.reset = latest Best, Xin On 19.01.18, 19:34, "Saloni Vithalani" wrote: Ou

Re: How to always consume from latest offset in kafka-streams

2018-01-22 Thread Xin Li
This? consumer.auto.offset.reset = latest Best, Xin On 19.01.18, 19:34, "Saloni Vithalani" wrote: Our requirement is such that if a kafka-stream app is consuming a partition, it should start it's consumption from latest offset of that partition. This seems like do-able usin

Re: How to always consume from latest offset in kafka-streams

2018-01-21 Thread Dan Markhasin
You can try generating a random consumer group ID to ensure that no existing offset is used. On 20 January 2018 at 01:11, Matthias J. Sax wrote: > That is not supported out-of-box. > > Configuration "auto.offset.reset" only triggers, if there are not > committed offsets and there is KS config to

Re: How to always consume from latest offset in kafka-streams

2018-01-19 Thread Matthias J. Sax
That is not supported out-of-box. Configuration "auto.offset.reset" only triggers, if there are not committed offsets and there is KS config to change this behavior. A possible workaround might be (but not sure if I want to recommend this), to increase KafkaStreams commit interval via StreamsConf

How to always consume from latest offset in kafka-streams

2018-01-19 Thread Saloni Vithalani
Our requirement is such that if a kafka-stream app is consuming a partition, it should start it's consumption from latest offset of that partition. This seems like do-able using streamsConfiguration.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "latest") Now, let's say using above configuration,