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

Reply via email to