<?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: kafka + Leader none + and kafka broker id not signed in zookeeper in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/kafka-Leader-none-and-kafka-broker-id-not-signed-in/m-p/334464#M231775</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Do you see anything interesting from the broker 1010 log file? this is to try to understand why 1010 is not able to register in zookeeper.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Try forcing a new controller by using:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[zk: localhost:2181(CONNECTED) 11] rmr /controller&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Are these broker ids unique? if you describe other topics, do you see the same brokers ids and same behavior (leader none for some partitions)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. Fi&lt;/SPAN&gt;&lt;SPAN&gt;nally, if this is dev env:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;4.1 You can enable unclean leader election = true and restart the brokers&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Or:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;4.2 (if this happening just for this topic) remove __consumer_offsets topic (just from zookeeper) and restart kafka&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 18:06:55 GMT</pubDate>
    <dc:creator>ManuelCalvo</dc:creator>
    <dc:date>2022-01-24T18:06:55Z</dc:date>
    <item>
      <title>kafka + Leader none + and kafka broker id not signed in zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-Leader-none-and-kafka-broker-id-not-signed-in/m-p/332656#M231222</link>
      <description>&lt;P&gt;we have 3 Kafka brokers on Linux RHEL 7.6 ( 3 linux machines )&lt;/P&gt;&lt;P&gt;kafka version is 2.7.X&lt;/P&gt;&lt;P&gt;brokers ID's are - `1010,1011,1012`&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;from kafka described we can see the following&lt;/P&gt;&lt;P&gt;Topic: __consumer_offsets Partition: 0 Leader: none Replicas: 1011,1010,1012 Isr: 1010&lt;BR /&gt;Topic: __consumer_offsets Partition: 1 Leader: 1012 Replicas: 1012,1011,1010 Isr: 1012,1011&lt;BR /&gt;Topic: __consumer_offsets Partition: 2 Leader: 1011 Replicas: 1010,1012,1011 Isr: 1011,1012&lt;BR /&gt;Topic: __consumer_offsets Partition: 3 Leader: none Replicas: 1011,1012,1010 Isr: 1010&lt;BR /&gt;Topic: __consumer_offsets Partition: 4 Leader: 1011 Replicas: 1012,1010,1011 Isr: 1011&lt;BR /&gt;Topic: __consumer_offsets Partition: 5 Leader: none Replicas: 1010,1011,1012 Isr: 1010&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;from Zookeeper cli we can see that broker `id 1010` not defined&lt;/P&gt;&lt;P&gt;[zk: localhost:2181(CONNECTED) 10] ls /brokers/ids&lt;BR /&gt;[1011, 1012]&lt;/P&gt;&lt;P&gt;and from the log - `state-change.log`&lt;/P&gt;&lt;P&gt;we can see the following&lt;/P&gt;&lt;P&gt;[2021-12-16 14:15:36,170] WARN [Broker id=1010] Ignoring LeaderAndIsr request from controller 1010 with correlation id 485 epoch 323 for partition __consumer_offsets-6 as the local replica for the partition is in an offline log directory (state.change.logger)&lt;BR /&gt;[2021-12-16 14:15:36,170] WARN [Broker id=1010] Ignoring LeaderAndIsr request from controller 1010 with correlation id 485 epoch 323 for partition __consumer_offsets-9 as the local replica for the partition is in an offline log directory (state.change.logger)&lt;BR /&gt;[2021-12-16 14:15:36,170] WARN [Broker id=1010] Ignoring LeaderAndIsr request from controller 1010 with correlation id 485 epoch 323 for partition __consumer_offsets-8 as the local replica for the partition is in an offline log directory (state.change.logger)&lt;BR /&gt;[2021-12-16 14:15:36,170] WARN [Broker id=1010] Ignoring LeaderAndIsr request from controller 1010 with correlation id 485 epoch 323 for partition __consumer_offsets-11 as the local replica for the partition is in an offline log directory (state.change.logger)&lt;BR /&gt;[2021-12-16 14:15:36,170] WARN [Broker id=1010] Ignoring LeaderAndIsr request from controller 1010 with correlation id 485 epoch 323 for partition __consumer_offsets-10 as the local replica for the partition is in an offline log directory (state.change.logger)&lt;BR /&gt;[2021-12-16 14:15:36,170] WARN [Broker id=1010] Ignoring LeaderAndIsr request from controller 1010 with correlation id 485 epoch 323 for partition __consumer_offsets-46 as the local replica for the partition is in an offline log directory (state.change.logger)&lt;BR /&gt;[2021-12-16 14:15:36,170] WARN [Broker id=1010] Ignoring LeaderAndIsr request from controller 1010 with correlation id 485 epoch 323 for partition __consumer_offsets-45 as the local replica for the partition is in an offline log directory (state.change.logger)&lt;BR /&gt;[2021-12-16 14:15:36,170] WARN [Broker id=1010] Ignoring LeaderAndIsr request from controller 1010 with correlation id 485 epoch 323 for partition __consumer_offsets-48 as the local replica for the partition is in an offline log directory (state.change.logger)&lt;BR /&gt;[2021-12-16 14:15:36,170] WARN [Broker id=1010] Ignoring LeaderAndIsr request from controller 1010 with correlation id 485 epoch 323 for partition __consumer_offsets-47 as the local replica for the partition is in an offline log directory (state.change.logger)&lt;BR /&gt;[2021-12-16 14:15:36,170] WARN [Broker id=1010] Ignoring LeaderAndIsr request from controller 1010 with correlation id 485 epoch 323 for partition __consumer_offsets-49 as the local replica for the partition is in an offline log directory (state.change.logger)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;by ls -ltr , we can see that `controller.log` and `state-change.log` are not update from `Dec 16`&lt;/P&gt;&lt;P&gt;-rwxr-xr-x 1 root kafka 343477146 Dec 16 14:15 controller.log&lt;BR /&gt;-rwxr-xr-x 1 root kafka 207911766 Dec 16 14:15 state-change.log&lt;BR /&gt;-rw-r--r-- 1 root kafka 68759461 Dec 16 14:15 kafkaServer-gc.log.6.current&lt;BR /&gt;-rwxr-xr-x 1 root kafka 6570543 Dec 17 09:42 log-cleaner.log&lt;BR /&gt;-rw-r--r-- 1 root kafka 524288242 Dec 20 00:39 server.log.10&lt;BR /&gt;-rw-r--r-- 1 root kafka 524289332 Dec 20 01:37 server.log.9&lt;BR /&gt;-rw-r--r-- 1 root kafka 524288452 Dec 20 02:35 server.log.8&lt;BR /&gt;-rw-r--r-- 1 root kafka 524288625 Dec 20 03:33 server.log.7&lt;BR /&gt;-rw-r--r-- 1 root kafka 524288395 Dec 20 04:30 server.log.6&lt;BR /&gt;-rw-r--r-- 1 root kafka 524288237 Dec 20 05:27 server.log.5&lt;BR /&gt;-rw-r--r-- 1 root kafka 524289136 Dec 20 06:25 server.log.4&lt;BR /&gt;-rw-r--r-- 1 root kafka 524288142 Dec 20 07:25 server.log.3&lt;BR /&gt;-rw-r--r-- 1 root kafka 524288187 Dec 20 08:21 server.log.2&lt;BR /&gt;-rw-r--r-- 1 root kafka 524288094 Dec 20 10:52 server.log.1&lt;BR /&gt;-rw-r--r-- 1 root kafka 323361 Dec 20 19:50 kafkaServer-gc.log.0.current&lt;BR /&gt;-rw-r--r-- 1 root kafka 323132219 Dec 20 19:50 server.log&lt;BR /&gt;-rwxr-xr-x 1 root kafka 15669106 Dec 20 19:50 kafkaServer.out&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;what we did until now is that:&lt;/P&gt;&lt;P&gt;we restart all 3 zookeeper servers&lt;BR /&gt;we restart all kafka brokers&lt;/P&gt;&lt;P&gt;but still kafka broker `1010` appears as `leader none` , and not in zookeeper data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;**additional info**&lt;/P&gt;&lt;P&gt;[zk: localhost:2181(CONNECTED) 11] get /controller&lt;BR /&gt;{"version":1,"brokerid":1011,"timestamp":"1640003679634"}&lt;BR /&gt;cZxid = 0x4900000b0c&lt;BR /&gt;ctime = Mon Dec 20 12:34:39 UTC 2021&lt;BR /&gt;mZxid = 0x4900000b0c&lt;BR /&gt;mtime = Mon Dec 20 12:34:39 UTC 2021&lt;BR /&gt;pZxid = 0x4900000b0c&lt;BR /&gt;cversion = 0&lt;BR /&gt;dataVersion = 0&lt;BR /&gt;aclVersion = 0&lt;BR /&gt;ephemeralOwner = 0x27dd7cf43350080&lt;BR /&gt;dataLength = 57&lt;BR /&gt;numChildren = 0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;**from kafka01**&lt;/P&gt;&lt;P&gt;more meta.properties&lt;BR /&gt;#&lt;BR /&gt;#Tue Nov 16 07:45:36 UTC 2021&lt;BR /&gt;cluster.id=D3KpekCETmaNveBJzE6PZg&lt;BR /&gt;version=0&lt;BR /&gt;broker.id=1010&lt;/P&gt;&lt;P&gt;**relevant ideas**&lt;/P&gt;&lt;P&gt;in topics disk we have the following files ( additionally to topics partitions )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-rw-r--r-- 1 root kafka 91 Nov 16 07:45 meta.properties&lt;BR /&gt;-rw-r--r-- 1 root kafka 161 Dec 15 16:04 cleaner-offset-checkpoint&lt;BR /&gt;-rw-r--r-- 1 root kafka 13010 Dec 15 16:20 replication-offset-checkpoint&lt;BR /&gt;-rw-r--r-- 1 root kafka 1928 Dec 17 09:42 recovery-point-offset-checkpoint&lt;BR /&gt;-rw-r--r-- 1 root kafka 80 Dec 17 09:42 log-start-offset-checkpoint&lt;/P&gt;&lt;P&gt;any idea if deletion of one or more of above files can help with our issue?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:57:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-Leader-none-and-kafka-broker-id-not-signed-in/m-p/332656#M231222</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2021-12-20T21:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: kafka + Leader none + and kafka broker id not signed in zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-Leader-none-and-kafka-broker-id-not-signed-in/m-p/334464#M231775</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Do you see anything interesting from the broker 1010 log file? this is to try to understand why 1010 is not able to register in zookeeper.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Try forcing a new controller by using:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[zk: localhost:2181(CONNECTED) 11] rmr /controller&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Are these broker ids unique? if you describe other topics, do you see the same brokers ids and same behavior (leader none for some partitions)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. Fi&lt;/SPAN&gt;&lt;SPAN&gt;nally, if this is dev env:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;4.1 You can enable unclean leader election = true and restart the brokers&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Or:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;4.2 (if this happening just for this topic) remove __consumer_offsets topic (just from zookeeper) and restart kafka&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 18:06:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-Leader-none-and-kafka-broker-id-not-signed-in/m-p/334464#M231775</guid>
      <dc:creator>ManuelCalvo</dc:creator>
      <dc:date>2022-01-24T18:06:55Z</dc:date>
    </item>
  </channel>
</rss>

