Re: ConsumerRebalanceFailedException with the kafka-console-consumer (bug?)

2016-04-01 Thread Cees de Groot
Is that a single node, local host only installation? For starters, I'd advice you to use the --new-consumer option - it will use what I think is a way less hairy method of doing consumer groups. W.r.t. Zookeeper, I've found that in test installations, I often end up wiping its data and restarting,

Re: ConsumerRebalanceFailedException with the kafka-console-consumer (bug?)

2016-03-30 Thread Filipe Correia
I've also asked on stackoverflow, in case you prefer to answer there: http://stackoverflow.com/questions/36313470/consumerrebalancefailedexception-with-the-kafka-console-consumer Thanks, Filipe On Wed, Mar 30, 2016 at 4:03 PM, Filipe Correia wrote: > Hi there, > > I've just installed kafka 0.9.

Re: ConsumerRebalanceFailedException

2014-02-28 Thread Neha Narkhede
rConsumerConnector.scala:326) > [06/02/14 08:59:18:018 AM EST] 215 INFO mkconsumer.MKConsumer: Put to > table Credit.SMC.MUNI info put gdm entity Credit.SMC.MUNI, key > MUNI.SMC.134103391 takes 4 ms > [06/02/14 08:59:18:018 AM EST] 215 INFO mkconsumer.MKConsumer

RE: ConsumerRebalanceFailedException

2014-02-28 Thread Yu, Libo
25, 2014 4:03 PM To: users@kafka.apache.org Subject: Re: ConsumerRebalanceFailedException Could you send around the consumer log when it throws ConsumerRebalanceFailedException. It should state the reason for the failed rebalance attempts. Thanks, Neha On Tue, Feb 25, 2014 at 12:01 PM, Yu, Li

Re: ConsumerRebalanceFailedException

2014-02-25 Thread Neha Narkhede
Could you send around the consumer log when it throws ConsumerRebalanceFailedException. It should state the reason for the failed rebalance attempts. Thanks, Neha On Tue, Feb 25, 2014 at 12:01 PM, Yu, Libo wrote: > Hi all, > > I tried to reproduce this exception. In case one, when no broker wa

Re: ConsumerRebalanceFailedException

2013-12-31 Thread Hanish Bansal
wrote: > > > > > > > Hi Jun, > > > > > > > > zookeeper.session.timeout.ms is used in a broker's configuration and > > > > manages brokers' registration with zk. > > > > Does it apply to consumer as well? Thanks. > > > &

Re: ConsumerRebalanceFailedException

2013-12-31 Thread Jun Rao
, Yu, Libo wrote: > > > > > Hi Jun, > > > > > > zookeeper.session.timeout.ms is used in a broker's configuration and > > > manages brokers' registration with zk. > > > Does it apply to consumer as well? Thanks. > > &g

Re: ConsumerRebalanceFailedException

2013-12-30 Thread Guozhang Wang
t; > > > > zookeeper.session.timeout.ms is used in a broker's configuration and > > > manages brokers' registration with zk. > > > Does it apply to consumer as well? Thanks. > > > > > > Regards, > > > > > > Libo > >

Re: ConsumerRebalanceFailedException

2013-12-30 Thread Hanish Bansal
th zk. > > Does it apply to consumer as well? Thanks. > > > > Regards, > > > > Libo > > > > > > -Original Message- > > From: Jun Rao [mailto:jun...@gmail.com] > > Sent: Monday, December 30, 2013 11:13 AM > > To: u

Re: ConsumerRebalanceFailedException

2013-12-30 Thread Guozhang Wang
s, > > Libo > > > -Original Message- > From: Jun Rao [mailto:jun...@gmail.com] > Sent: Monday, December 30, 2013 11:13 AM > To: users@kafka.apache.org > Subject: Re: ConsumerRebalanceFailedException > > If the consumer is not shut down properly, it

RE: ConsumerRebalanceFailedException

2013-12-30 Thread Yu, Libo
To: users@kafka.apache.org Subject: Re: ConsumerRebalanceFailedException If the consumer is not shut down properly, it will take zookeeper.session.timeout.ms before the consumer is deregistered from ZK. If you restart the consumer before that, rebalances may fail. Make sure tha

Re: ConsumerRebalanceFailedException

2013-12-30 Thread Jun Rao
If the consumer is not shut down properly, it will take zookeeper.session.timeout.ms before the consumer is deregistered from ZK. If you restart the consumer before that, rebalances may fail. Make sure that you call connector.shutdown() when you shut down the consumer Thanks, Jun On Mon, Dec 3

Re: ConsumerRebalanceFailedException

2013-12-02 Thread Jun Rao
n. How long is the interval between the retries? > Is it max.fetch.wait + socket.timeout.ms? > Thanks. > > Libo > > > -Original Message- > From: Jun Rao [mailto:jun...@gmail.com] > Sent: Monday, December 02, 2013 11:55 AM > To: users@kafka.apache.org > Subject

RE: ConsumerRebalanceFailedException

2013-12-02 Thread Yu, Libo
Message- From: Jun Rao [mailto:jun...@gmail.com] Sent: Monday, December 02, 2013 11:55 AM To: users@kafka.apache.org Subject: Re: ConsumerRebalanceFailedException Is the failure on the last rebalance? If so, some partitions will not have any consumers. A common reason for rebalance failure is that

Re: ConsumerRebalanceFailedException

2013-12-02 Thread Jun Rao
: Friday, November 29, 2013 8:50 PM > To: users@kafka.apache.org > Subject: Re: ConsumerRebalanceFailedException > > Transient rebalance failures are ok. However, it's important that the last > rebalance in a sequence succeeds. Otherwise, some of the partitions will > not be consumed by

RE: ConsumerRebalanceFailedException

2013-12-02 Thread Yu, Libo
n Rao [mailto:jun...@gmail.com] Sent: Friday, November 29, 2013 8:50 PM To: users@kafka.apache.org Subject: Re: ConsumerRebalanceFailedException Transient rebalance failures are ok. However, it's important that the last rebalance in a sequence succeeds. Otherwise, some of the partitions w

Re: ConsumerRebalanceFailedException

2013-11-29 Thread Jun Rao
ZKRebalancerListener$$anon$1.r > un(ZookeeperConsumerConnector.scala:326) > > Regards, > > Libo > > > -Original Message- > From: Joe Stein [mailto:joe.st...@stealth.ly] > Sent: Friday, November 29, 2013 11:57 AM > To: users@kafka.apache.org > Subject: Re

RE: ConsumerRebalanceFailedException

2013-11-29 Thread Yu, Libo
istener$$anon$1.r un(ZookeeperConsumerConnector.scala:326) Regards, Libo -Original Message- From: Joe Stein [mailto:joe.st...@stealth.ly] Sent: Friday, November 29, 2013 11:57 AM To: users@kafka.apache.org Subject: Re: ConsumerRebalanceFailedException What is the full stack trace? if you see "can't r

Re: ConsumerRebalanceFailedException

2013-11-29 Thread Joe Stein
tion? > > Regards, > > Libo > > > -Original Message- > From: Florin Trofin [mailto:ftro...@adobe.com] > Sent: Tuesday, July 16, 2013 4:20 PM > To: users@kafka.apache.org > Subject: Re: ConsumerRebalanceFailedException > > Yes, I think these are two se

RE: ConsumerRebalanceFailedException

2013-11-29 Thread Yu, Libo
We found our consumer stopped working after this exception occurred. Can the consumer recover from such an exception? Regards, Libo -Original Message- From: Florin Trofin [mailto:ftro...@adobe.com] Sent: Tuesday, July 16, 2013 4:20 PM To: users@kafka.apache.org Subject: Re

Re: ConsumerRebalanceFailedException

2013-07-16 Thread Florin Trofin
Yes, I think these are two separate issues. F. On 7/16/13 11:32 AM, "Joel Koshy" wrote: >From a user's perspective, ConsumerRebalanceException is a bit cryptic >-I think the other thread was to provide a more informative message >and also be able to recover when a broker does come up (fixed in

Re: ConsumerRebalanceFailedException

2013-07-16 Thread Joel Koshy
>From a user's perspective, ConsumerRebalanceException is a bit cryptic -I think the other thread was to provide a more informative message and also be able to recover when a broker does come up (fixed in KAFKA-969). Thanks, Joel On Tue, Jul 16, 2013 at 11:04 AM, Vaibhav Puranik wrote: > Thank

Re: ConsumerRebalanceFailedException

2013-07-16 Thread Vaibhav Puranik
Thank you Joel. In a different but related thread, somebody is asking to rename the exception as NoBrokerAvailableExcption. But given the description above, the exception seems to be named appropriately. Regards, Vaibhav On Tue, Jul 16, 2013 at 12:05 AM, Joel Koshy wrote: > Yes - rebalance =>

Re: ConsumerRebalanceFailedException

2013-07-16 Thread Joel Koshy
Yes - rebalance => consumers trying to coordinate through ZK. Rebalances can happen when one or more of the following happen: - a consumed topic partition appears or disappears - i.e., if a broker comes or goes. - a consumer instance in the group comes or goes "goes" could also be triggered by sess

Re: ConsumerRebalanceFailedException when broker unavailable

2013-07-15 Thread Joel Koshy
I think this is addressed in KAFKA-969 On Fri, Jul 12, 2013 at 5:55 PM, Florin Trofin wrote: > Hello, > > I'm going through a series of tests with Kafka 0.8 to see what the failure > cases are. One simple scenario is this: > > 1. Launch Zookeeper > 2. Launch my consumer (written in scala) but do

Re: ConsumerRebalanceFailedException

2013-03-12 Thread Erich Nachbar
I have seen those exceptions when you restart your Kafka client before the configured Zookeeper session timeout has occured. Try and wait a bit longer between client restarts (we wait for 40s) and see if those exceptions go away. On Tuesday, March 12, 2013, Dragos Manolescu wrote: > Hi -- > > I h

Re: ConsumerRebalanceFailedException

2013-03-12 Thread Jun Rao
Do you see many rebalances in your consumer log? Thanks, Jun On Tue, Mar 12, 2013 at 6:01 PM, Dragos Manolescu < dragos.manole...@servicenow.com> wrote: > Hu Jun -- > > I appreciate the fast turnaround. I use Zookeeper 3.4.5. > > I am not sure about the consumer GC: the exception happens when I

Re: ConsumerRebalanceFailedException

2013-03-12 Thread Dragos Manolescu
Hu Jun -- I appreciate the fast turnaround. I use Zookeeper 3.4.5. I am not sure about the consumer GC: the exception happens when I fire up the client's VM which shouldn't be a busy time for the GC--I've been using autooffset.reset=largest so I assume that the client doesn't do a whole lot upon

Re: ConsumerRebalanceFailedException

2013-03-12 Thread Jun Rao
What's the ZK version? You should use 3.3.4 or above, which fixed some bugs that could cause rebalance to fail. Also, a typical reason for many rebalancing is the consumer side GC. If so, you will see logs saying sth like "expired session" for ZK. Thanks, Jun On Tue, Mar 12, 2013 at 9:47 AM,