Re: Does Kafka consumer api provide a way for you to search for partition number of a topic with key?

2018-01-22 Thread Andras Beni
Hi Brilly, Do I understand right, that you want your consumers to consume only from a given partition / partitions based on a preconfigured value? You need to copy the mechanism the default partitioner (if this is used on producer side) uses to determine partition. ( https://github.com/apache/kafk

Re: Who is assigned to which partitions

2018-02-20 Thread Andras Beni
Hi Per, Unfortunately you can not extract this information from the client. Even if you implement your own PartitionAssignor to supply this information to all the consumers, KafkaConsumer has its ConsumerCoordinator implementation hard wired, so you cannot extract that info. Here there is room for

Re: difference between 2 options

2018-02-26 Thread Andras Beni
Hi Adrien, Every log.flush.offset.checkpoint.interval.ms we write out the current recovery point for all logs to a text file in the log directory to avoid recovering the whole log on startup. and every log.flush.start.offset.checkpoint.interval.ms we write out the current log start offset for al

Re: Kafka 0.8.2 Producers -> Kafka Brokers 0.9.x

2018-02-26 Thread Andras Beni
Hi Waleed, generally extra work is necessary only when the client uses a different message format version than what is used in the broker log. Then the broker has to convert between those formats. In case of 0.8 and 0.9 there is no difference in the message format: both use version 0. Best regard

Re: difference between 2 options

2018-02-27 Thread Andras Beni
t means the old consumed data ? For example I have 34700 offset, it's to > avoid reexposing > > 34000~34699 records to consumer after crash ? > > > De : Andras Beni > Envoyé : mardi 27 février 2018 06:16:41 &

Re: unsubscribe me

2018-02-27 Thread Andras Beni
You might want to send this to users-unsubscr...@kafka.apache.org . On Tue, Feb 27, 2018 at 7:49 PM, Yuejie Chen wrote: > >

Re: difference between 2 options

2018-03-03 Thread Andras Beni
ncept 😊 > > > Best regards, > > > Adrien > > > De : Andras Beni > Envoyé : mardi 27 février 2018 15:41:04 > À : users@kafka.apache.org > Objet : Re: difference between 2 options > > 1) We write out one recovery point per lo

Re: Kafka 0.9 MirrorMaker failing with Batch Expired when producing to Kafka 1.0 cluster

2018-03-13 Thread Andras Beni
Hi Andrew, It seems the throughput of the new cluster is smaller than that of the old cluster. And for this reason MirrorMaker cannot send messages fast enough (i.e. they expire). I recommend comparing the configurations. For the hanging MirrorMaker instances, I think looking at stack dumps would

Re: ConsumerOffsets uneven partition distribution

2018-03-20 Thread Andras Beni
Hi Johnny, As you already mentioned, it depends on the group.id which broker will be the group leader. You can change the group.id to modify which _consumer_offsets partition the group will belong to, thus change which broker will manage a group. You can check which partition a group.id is assigne

Re: ConsumerOffsets uneven partition distribution

2018-03-22 Thread Andras Beni
a hot spot on one or the broker... > > Thanks, > > Johnny Luo > > On 20/3/18, 10:03 pm, "Andras Beni" wrote: > > Hi Johnny, > > As you already mentioned, it depends on the group.id which broker > will be > the group leader. > You can

Re: ListOffsets parameters

2018-04-12 Thread Andras Beni
Hi Emmett, ListOffsets API tells you about the log segments belonging to (the given partitions of) a topic. I think I better explain how it behaves by example. I have a topic called 'test2' with three partitions (0..2). I produced 2665 messages to its partition 0. I set up the topic so that it rol

Re: Removing the Kafka DEBUG logs in catalina.out using log4j.properties

2018-05-13 Thread Andras Beni
Hi Kathick, You probably want to add this line to your log4j.properties: log4j.logger.org.apache.kafka=INFO This will remove all DEBUG lines where the logger name starts with org.apache.kafka. HTH, Andras On Fri, May 11, 2018 at 9:28 AM, Karthick Kumar wrote: > Hi, > > I'm using tomcat node as

Re: [VOTE] 1.1.1 RC0

2018-06-20 Thread Andras Beni
+1 (non-binding) Built .tar.gz, created a cluster from it and ran a basic end-to-end test: performed a rolling restart while console-producer and console-consumer ran at around 20K messages/sec. No errors or data loss. Ran unit and integration tests successfully 3 out of 5 times. Encountered some

Re: [ANNOUNCE] New Committer: Manikumar Reddy

2018-10-11 Thread Andras Beni
Congratulations, Manikumar! Srinivas Reddy ezt írta (időpont: 2018. okt. 12., P 3:00): > Congratulations Mani. We'll deserved 👍 > > - > Srinivas > > - Typed on tiny keys. pls ignore typos.{mobile app} > > On Fri 12 Oct, 2018, 01:39 Jason Gustafson, wrote: > > > Hi all, > > > > The PMC for Apach

Re: [VOTE] 2.1.0 RC0

2018-10-24 Thread Andras Beni
+1 (non-binding) Verified signatures and checksums of release artifacts Performed quickstart steps on rc artifacts (both scala 2.11 and 2.12) and one built from tag 2.1.0-rc0 Andras On Wed, Oct 24, 2018 at 10:17 AM Dong Lin wrote: > Hello Kafka users, developers and client-developers, > > This

Re: [VOTE] 2.1.0 RC1

2018-11-13 Thread Andras Beni
+1 (non-binding) Verified signatures and checksums of release artifacts Performed quickstart steps on rc artifacts (both scala 2.11 and 2.12) Andras On Tue, Nov 13, 2018 at 10:51 AM Eno Thereska wrote: > Built code and ran tests. Getting a single integration test failure: > > kafka.log.LogClea