Re: Time-Based Index for Consuming Messages Up to Certain Timestamp

2017-11-24 Thread Matthias J. Sax
Yes and no :) 1) if you use the index to find the "end-offset" of your scan ("consume all messages with a smaller offset") you would compare the offset of each message with this "end offset" -- thus, this is the same thing as consuming the topic from beginning and just compare the record timestamp

Re: Recommended settings for Internal Topics

2017-11-24 Thread Debraj Manna
Anyone any thoughts? If I am not changing this value after upgrade to 1.0 in a single node kafka broker. It will take the default value of 3 . So what will be the behavior in this case? On Fri, Nov 24, 2017 at 3:57 PM, Debraj Manna wrote: > Hi > > I am migrating from Kafka 0.10 to the latest 1.

Re: Time-Based Index for Consuming Messages Up to Certain Timestamp

2017-11-24 Thread Ray Ruvinskiy
I see, thanks. I suppose I was trying to avoid so much custom logic, which is why I initially was looking at the time-based index functionality. Based on what you’ve said so far, I take it using the time-based index to find an offset corresponding to a timestamp and then consuming all messages w

Re: parallel processing of records in a Kafka consumer

2017-11-24 Thread Matthias J. Sax
Your understanding is correct. The simplest way to get more parallelism is to increase the number of partitions. There is some overhead for this, but it not too much. >> what you're writing is in sharp contrast with what I know... I guess, this target other messaging system: Kafka has a differen

Re: Regarding Kafka Consumer

2017-11-24 Thread simarpreet kaur
Thanks, Faraz. I am using its Java API. It does not seem to provide such method to the consumer. On Wed, Nov 22, 2017 at 2:45 PM, Faraz Mateen wrote: > Not sure which client you are using. > In kafka-python, consumer.config returns a dictionary with all consumer > properties. > > Thanks, > Fara

Re: KafkaConsumer current offsets

2017-11-24 Thread simarpreet kaur
Hii Sameer, You can find the current offset of a consumer using method *position *provided to Kafka Consumer. This method takes the topic partition in parameter to know which partition you want offset of. For example, you can do something like *consumer.position()* To find the topic partitions as

Recommended settings for Internal Topics

2017-11-24 Thread Debraj Manna
Hi I am migrating from Kafka 0.10 to the latest 1.0 . I did not set any value for these fields in Kafka 0.10. Can some one let me know what is the recommended settings for a 3 node broker cluster & for a single node broker cluster for the below internal topic settings - - offsets.topic.repli

Re: parallel processing of records in a Kafka consumer

2017-11-24 Thread Vincenzo D'Amore
Hi Matthias, what you're writing is in sharp contrast with what I know... I read that: "Kafka consumers are typically part of a consumer group. When multiple consumers are subscribed to a topic and belong to the same consumer group, each consumer in the group will receive messages from a differen

Re: auto.offset.reset in 0.11.0.2 Kafka Streams does not take effect.

2017-11-24 Thread Artur Mrozowski
Thank you Matthias! On Thu, Nov 23, 2017 at 10:34 PM, Matthias J. Sax wrote: > You might want to consider using the reset tool instead of just changing > the application.id... > > https://www.confluent.io/blog/data-reprocessing-with-kafka- > streams-resetting-a-streams-application/ > > > -Matthi