Lax,

Under that scenario you would better first fix the issue of isr==null by
checking if anything went wrong on the brokers.

Guozhang


On Mon, Jul 7, 2014 at 8:43 PM, chenlax <lax...@hotmail.com> wrote:

> 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@kafka.apache.org
> >
> > 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, 鞠大升 <dashen...@gmail.com> wrote:
> >
> > > you can use the preferred leader election tool to reset leaders to
> > > preferred replicas.
> > > 2014年7月7日 PM10:37于 "François Langelier" <f.langel...@gmail.com>写道:
> > >
> > > > 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...
> > > >
> > > >
> > > >
> > > > François Langelier
> > > > Étudiant en génie Logiciel - École de Technologie Supérieure
> > > > <http://www.etsmtl.ca/>
> > > > Capitaine Club Capra <http://capra.etsmtl.ca/>
> > > > VP-Communication - CS Games <http://csgames.org> 2014
> > > > Jeux de Génie <http://www.jdgets.com/> 2011 à 2014
> > > > Argentier Fraternité du Piranha <http://fraternitedupiranha.com/>
> > > > 2012-2014
> > > > Comité Organisateur Olympiades ÉTS 2012
> > > > Compétition Québécoise d'Ingénierie 2012 - Compétition Senior
> > > >
> > > >
> > > > On 7 July 2014 05:59, 陈翔 <lax...@hotmail.com> wrote:
> > > >
> > > > > 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
> > > > >
> > > >
> > >
> >
> >
> >
> > --
> > -- Guozhang
>
>



-- 
-- Guozhang

Reply via email to