<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Leader election after replication in Kafka cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leader-election-after-replication-in-Kafka-cluster/m-p/49156#M50972</link>
    <description>&lt;P&gt;Take a look at the preferred leader election tool:&lt;BR /&gt;&lt;A href="https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools" target="_blank"&gt;https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This assumes that the desired leaders are listed first in the partition list. If 30 is listed first, it will still be the leader for all those partitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-pd&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2017 19:51:46 GMT</pubDate>
    <dc:creator>pdvorak</dc:creator>
    <dc:date>2017-01-06T19:51:46Z</dc:date>
    <item>
      <title>Leader election after replication in Kafka cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leader-election-after-replication-in-Kafka-cluster/m-p/49140#M50971</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;We decided to replace one broker(id=29) in our Kafka cluster.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;default.replication.factor: 3&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;num.partitions: 3&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;So, we moved all topics from brokers 29,30,31 to 30,31 using kafka-reassign-partitions. Everything was ok&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;After replication was done we added replaced node(id=32)&amp;nbsp; and moved all topics to brokers 30,31,32&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;But we see that all partitions have the same leader is 30:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;./kafka-topics --topic=Shop --describe --zookeeper=localhost:2181&lt;BR /&gt;Topic:Shop PartitionCount:3 ReplicationFactor:3 Configs:&lt;BR /&gt;Topic: Shop Partition: 0 Leader: 30 Replicas: 30,32,31 Isr: 31,30,32&lt;BR /&gt;Topic: Shop Partition: 1 Leader: 30 Replicas: 32,31,30 Isr: 30,31,32&lt;BR /&gt;Topic: Shop Partition: 2 Leader: 30 Replicas: 31,30,32 Isr: 30,31,32&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;How should we change it?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:53:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leader-election-after-replication-in-Kafka-cluster/m-p/49140#M50971</guid>
      <dc:creator>UkrZilla</dc:creator>
      <dc:date>2022-09-16T10:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Leader election after replication in Kafka cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leader-election-after-replication-in-Kafka-cluster/m-p/49156#M50972</link>
      <description>&lt;P&gt;Take a look at the preferred leader election tool:&lt;BR /&gt;&lt;A href="https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools" target="_blank"&gt;https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This assumes that the desired leaders are listed first in the partition list. If 30 is listed first, it will still be the leader for all those partitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-pd&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 19:51:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leader-election-after-replication-in-Kafka-cluster/m-p/49156#M50972</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2017-01-06T19:51:46Z</dc:date>
    </item>
  </channel>
</rss>

