You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Eureka <kv...@gmail.com> on 2013/04/25 09:49:57 UTC

reassign Partition leader

Hi All,

Here is my test scenario.

There are two broker(A,B) and make one topic which has two partition.

and then, A is leader of partition #0 and B is leader of partition #1.

Producer and consumer work well.

If, B broker is down, A become leader of partition #0 and #1.

That is good. and work well.

But, When broker B run again, B is not leader of #1. Broker A receive all
messages.

In that case,

I want to reassign a leader of partition #1 from A to B.

Is it possible??

Thanks~ :)

Re: reassign Partition leader

Posted by Jun Rao <ju...@gmail.com>.
Yes, there is an admin tool PreferredReplicaLeaderElectionCommand that you
can run.

Thanks,

Jun


On Thu, Apr 25, 2013 at 12:49 AM, Eureka <kv...@gmail.com> wrote:

> Hi All,
>
> Here is my test scenario.
>
> There are two broker(A,B) and make one topic which has two partition.
>
> and then, A is leader of partition #0 and B is leader of partition #1.
>
> Producer and consumer work well.
>
> If, B broker is down, A become leader of partition #0 and #1.
>
> That is good. and work well.
>
> But, When broker B run again, B is not leader of #1. Broker A receive all
> messages.
>
> In that case,
>
> I want to reassign a leader of partition #1 from A to B.
>
> Is it possible??
>
> Thanks~ :)
>