RE: librdkafka : seek() to offset out of range

2019-11-14 Thread Koushik Chitta
You can use query_watermark_offsets() to get high watermark of the topic partition to use as max offset. Regards, Koushik -Original Message- From: Aurelien DROISSART Sent: Thursday, August 29, 2019 5:32 AM To: users@kafka.apache.org Subject: librdkafka : seek() to offset out of range

librdkafka : seek() to offset out of range

2019-08-29 Thread Aurelien DROISSART
Hello all, we have a question about librdkafka - Kafka version : 2.0.1 - librdkafka version : 0.11.4 We have an application connecting to kafka using librdkafka. It needs to consume a topic starting at a specific offset value stored in the application. It does so by calling rd_kafka_seek

Re: Debugging invalid_request response from a .10.2 server for list offset api using librdkafka client

2017-09-27 Thread Vignesh
> > above configurations, why do we get invalid_request? > > > > > > Thanks, > > > > Vignesh. > > > > > > > > > > On Wed, Sep 27, 2017 at 9:51 AM, Vignesh wrote: > > > > > Hi, > > > > > > We are using

Re: Debugging invalid_request response from a .10.2 server for list offset api using librdkafka client

2017-09-27 Thread Hans Jespersen
with > above configurations, why do we get invalid_request? > > > Thanks, > > Vignesh. > > > > > On Wed, Sep 27, 2017 at 9:51 AM, Vignesh wrote: > > > Hi, > > > > We are using LibrdKafka library version .11.0 and calling List Offset API >

Re: Debugging invalid_request response from a .10.2 server for list offset api using librdkafka client

2017-09-27 Thread Vignesh
get invalid_request? Thanks, Vignesh. On Wed, Sep 27, 2017 at 9:51 AM, Vignesh wrote: > Hi, > > We are using LibrdKafka library version .11.0 and calling List Offset API > with a timestamp on a 0.10.2 kafka server installed in a windows machine. > > This request returns

Debugging invalid_request response from a .10.2 server for list offset api using librdkafka client

2017-09-27 Thread Vignesh
Hi, We are using LibrdKafka library version .11.0 and calling List Offset API with a timestamp on a 0.10.2 kafka server installed in a windows machine. This request returns an error code, 43 - INVALID_REQUEST. We have other local installations of Kafka version 0.10.2 (also on Windows) and are

How to list all consumer-groups & their offset using confluent-kafka-python or librdkafka?

2017-05-24 Thread Yuxiang Mai
Kafka itself. But we need to using Python API to monitor the consumer offset. We need some Python API like the kafka-consumer-groups.sh tool to list all consumer-group & show their offset one by one. We plan to use confluent-kafka-python/librdkafka as our option. But we can not find API to list

Re: Configuration for low latency and low cpu utilization? java/librdkafka

2016-12-10 Thread Ewen Cheslack-Postava
tion parameter or that we have > some issues with our environment that we can find and solve. > > We are using both the java client and librdkafka and see similar CPU issues > in both clients. > > We have looked at recommendations from: > https://github.com/edenhill/lib

Configuration for low latency and low cpu utilization? java/librdkafka

2016-12-08 Thread Niklas Ström
processes we are concerned that short poll loops will cause an overconsumption of CPU capacity. We are hoping we might have missed some configuration parameter or that we have some issues with our environment that we can find and solve. We are using both the java client and librdkafka and see similar

Re: librdkafka

2016-09-29 Thread Magnus Edenhill
Hey Dave, yes that's the general plan. Regards, Magnus 2016-09-29 19:33 GMT+02:00 Tauzell, Dave : > Does anybody know if the librdkafka releases are kept in step with kafka > releases? > > -Dave > This e-mail and any files transmitted with it are confidential, may

librdkafka

2016-09-29 Thread Tauzell, Dave
Does anybody know if the librdkafka releases are kept in step with kafka releases? -Dave This e-mail and any files transmitted with it are confidential, may contain sensitive information, and are intended solely for the use of the individual or entity to whom they are addressed. If you have

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-09-05 Thread Mazhar Shaikh
java.lang.Thread.run(Thread.java:744) > > > Thank you. > > Regards, > Mazhar Shaikh > > > On Fri, Aug 19, 2016 at 8:05 PM, Jun Rao wrote: > >> Mazhar, >> >> Let's first confirm if this is indeed a bug. As I mentioned earlier, it's >> po

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-30 Thread Mazhar Shaikh
kh > > wrote: > > > Hi Jun, > > > > In my earlier runs, I had enabled delivery report (with and without > offset > > report) facility provided by librdkafka. > > > > The producer has received successful delivery report for the all msg sent > &g

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-19 Thread Jun Rao
> report) facility provided by librdkafka. > > The producer has received successful delivery report for the all msg sent > even than the messages where lost. > > as you mentioned. producer has nothing to do with this loss of messages. > > I just want to know, as when c

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-19 Thread Mazhar Shaikh
Hi Jun, In my earlier runs, I had enabled delivery report (with and without offset report) facility provided by librdkafka. The producer has received successful delivery report for the all msg sent even than the messages where lost. as you mentioned. producer has nothing to do with this loss of

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-18 Thread Jun Rao
Mazhar, With ack=1, whether you lose messages or not is not deterministic. It depends on the time when the broker receives/acks a message, the follower fetches the data and the broker fails. So, it's possible that you got lucky in one version and unlucky in another. Thanks, Jun On Thu, Aug 18,

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-18 Thread Mazhar Shaikh
86] -> List(5, 3), [topic1,72] -> > > List(5, 3), [topic1,79] -> List(5, 3), [topic1,82] -> List(5, 3)), 1 -> > > Map([topic1,92] -> List(1, 0), [topic1,95] -> List(1, 0), [topic1,69] -> > > List(1, 0), [topic1,93] -> List(1, 0), [topic1,70] -> List(1, 0

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-18 Thread Jun Rao
16-08-17 13:09:50,295] DEBUG [Controller 2]: topics not in preferred > replica Map() (kafka.controller.KafkaController) > [2016-08-17 13:09:50,295] TRACE [Controller 2]: leader imbalance ratio for > broker 0 is 0.00 (kafka.controller.KafkaController) > [2016-08-17 13:09:50,295] DEBUG [Controller

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-18 Thread Mazhar Shaikh
> > List(4, 2))) (kafka.controller.KafkaController) > [2016-08-17 13:09:50,295] DEBUG [Controller 2]: topics not in preferred > replica Map() (kafka.controller.KafkaController) > [2016-08-17 13:09:50,295] TRACE [Controller 2]: leader imbalance ratio for > broker 0 is 0.00 (kafka.control

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-18 Thread Mazhar Shaikh
Listener) [2016-08-17 13:10:43,383] DEBUG Sending MetadataRequest to Brokers:ArrayBuffer(0, 5, 1, 2, 3, 4) for TopicAndPartitions:Set([topic1,67], [topic1,95]) (kafka.controller.IsrChangeNotificationListener) [2016-08-17 13:10:43,394] DEBUG [IsrChangeNotificationListener] Fired!!! (kafka.con

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-17 Thread Jun Rao
r > > guarantees acked messages won't be lost after leader failure. > > > > Thanks, > > > > Jun > > > > On Wed, Aug 10, 2016 at 11:41 PM, Mazhar Shaikh < > > mazhar.shaikh...@gmail.com> > > wrote: > > > > > Hi Kafka Team, > &

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-17 Thread Mazhar Shaikh
s=all in the producer? Only the latter > guarantees acked messages won't be lost after leader failure. > > Thanks, > > Jun > > On Wed, Aug 10, 2016 at 11:41 PM, Mazhar Shaikh < > mazhar.shaikh...@gmail.com> > wrote: > > > Hi Kafka Team, > > &g

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-17 Thread Jun Rao
Are you using acks=1 or acks=all in the producer? Only the latter guarantees acked messages won't be lost after leader failure. Thanks, Jun On Wed, Aug 10, 2016 at 11:41 PM, Mazhar Shaikh wrote: > Hi Kafka Team, > > I'm using kafka (kafka_2.11-0.9.0.1) with librdka

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-17 Thread Mazhar Shaikh
r broker 4 is 0.00 (kafka.controller.KafkaController) [2016-08-17 13:10:37,278] DEBUG [IsrChangeNotificationListener] Fired!!! (kafka.controller.IsrChangeNotificationListener) [2016-08-17 13:10:37,292] DEBUG Sending MetadataRequest to Brokers:ArrayBuffer(0, 5, 1, 2, 3, 4) for TopicAndPartitions

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-11 Thread Tom Crayford
Shaikh wrote: > Hi Kafka Team, > > I'm using kafka (kafka_2.11-0.9.0.1) with librdkafka (0.8.1) API for > producer > During a run of 2hrs, I notice the total number of messaged ack'd by > librdkafka delivery report is greater than the maxoffset of a partition in > ka

kafka broker is dropping the messages after acknowledging librdkafka

2016-08-10 Thread Mazhar Shaikh
Hi Kafka Team, I'm using kafka (kafka_2.11-0.9.0.1) with librdkafka (0.8.1) API for producer During a run of 2hrs, I notice the total number of messaged ack'd by librdkafka delivery report is greater than the maxoffset of a partition in kafka broker. I'm running kafka broker w