Re: How recover leader when broker restart

2014-07-09 Thread 鞠大升
don't know why the isr==null and i can't reappear > it, all brokers are working,and add new topic succesfully. > Thanks, > Lax > > > > Date: Tue, 8 Jul 2014 11:29:05 -0700 > > Subject: Re: How recover leader when broker restart > > From: wangg...@gmail.

RE: How recover leader when broker restart

2014-07-08 Thread chenlax
thank you Guozhang,;i don't know why the isr==null and i can't reappear it, all brokers are working,and add new topic succesfully. Thanks, Lax > Date: Tue, 8 Jul 2014 11:29:05 -0700 > Subject: Re: How recover leader when broker restart > From: wangg...@gmail.com > To:

Re: How recover leader when broker restart

2014-07-08 Thread Guozhang Wang
i can recover the leader. > > > Thanks, > Lax > > > > Date: Mon, 7 Jul 2014 08:06:16 -0700 > > Subject: Re: How recover leader when broker restart > > From: wangg...@gmail.com > > To: users@kafka.apache.org > > > > You can use the preferred

RE: How recover leader when broker restart

2014-07-07 Thread chenlax
use preferred tool can rebalance leadership,but if the isr are null then the leader is only -1,how i can recover the leader. Thanks, Lax > Date: Mon, 7 Jul 2014 08:06:16 -0700 > Subject: Re: How recover leader when broker restart > From: wangg...@gmail.com > To: users@kafk

Re: How recover leader when broker restart

2014-07-07 Thread Guozhang Wang
You can use the preferred leader election tool to move the leadership. https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools#Replicationtools-2.PreferredReplicaLeaderElectionTool Guozhang On Mon, Jul 7, 2014 at 7:56 AM, 鞠大升 wrote: > you can use the preferred leader election tool

Re: How recover leader when broker restart

2014-07-07 Thread 鞠大升
you can use the preferred leader election tool to reset leaders to preferred replicas. 2014年7月7日 PM10:37于 "François Langelier" 写道: > AFAIK, the simplest way will be to shutdown your 2 others brokers after you > restarted your broker 1, which will force your topics to have your broker 1 > as leader

Re: How recover leader when broker restart

2014-07-07 Thread François Langelier
AFAIK, the simplest way will be to shutdown your 2 others brokers after you restarted your broker 1, which will force your topics to have your broker 1 as leader since it's the only one available, and then restart your brokers 2 and 3 But I can't really see why you want your leaders on broker 1...

How recover leader when broker restart

2014-07-07 Thread 陈翔
i have 3 broker,when i restart a broker 1,then 1 can not as leader.i want to know how i can recover broker 1 as a leader. thanks, lax