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