You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by nitin agarwal <ni...@gmail.com> on 2020/07/22 15:31:05 UTC

Enabling Unclean leader election

Hi,

Is there a way to enable Unclean leader election in Kafka without
restarting the broker? We have a use case where we want to enable
the Unclean leader election conditionally.

Thanks,
Nitin

Re: Enabling Unclean leader election

Posted by Ricardo Ferreira <ri...@riferrei.com>.
You should be able to use the command `kafka-leader-election` to 
accomplish this. This command has an option called "--election-type" 
that you can use to specify whether the election is preferred or unclean.

-- Ricardo

On 7/22/20 11:31 AM, nitin agarwal wrote:
> Hi,
>
> Is there a way to enable Unclean leader election in Kafka without
> restarting the broker? We have a use case where we want to enable
> the Unclean leader election conditionally.
>
> Thanks,
> Nitin
>