<?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 [kafka] Error sending message when leader is not master node in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-Error-sending-message-when-leader-is-not-master-node/m-p/69349#M79842</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My current setup has 1 management node and 3 worker node.&lt;BR /&gt;Server A(master) - kafka broker, ...&lt;BR /&gt;Server B - zookeeper, kafka broker, ...&lt;BR /&gt;Server C - zookeeper, kafka broker, ...&lt;BR /&gt;Server D - zookeeper, kafka broker, ...&lt;BR /&gt;&lt;BR /&gt;KAFKA-3.0.0-1.3.0.0.p0.40&lt;BR /&gt;CDH-5.14.2-1.cdh5.14.2.p0.3&lt;BR /&gt;&lt;BR /&gt;I am using a client machine in the same network to create topic, produce and consume message using kafka bat files.&lt;BR /&gt;&lt;BR /&gt;I realise when i create a topic, and the leader of the topic happens to be the broker on server A, everything works.&lt;BR /&gt;&lt;BR /&gt;But if the leader of the topic is any broker on server b/c/d, when i attempt to send any messages, it prompt the following message.&lt;BR /&gt;WARN - Got error produce response with correlation id _ on topic-partition ___, retrying. Error: UNKNOWN_TOPIC_OR_PARTITION&lt;BR /&gt;WARN - Receive unknown topic or partition error in produce request on partition ___. The topic/partition may not exist or the user may not have Describe access to it&lt;BR /&gt;ERROR - Error when sending message to topic ___ with key: null, value... UnknownTopicOrPartitionException: This server does not host this topic-partition.&lt;BR /&gt;&lt;BR /&gt;I am suspecting something to do with the zookeeper, but have no idea where to look deeper into.&lt;BR /&gt;I am a beginner in this area, any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Sep 2022 13:22:55 GMT</pubDate>
    <dc:creator>Qing</dc:creator>
    <dc:date>2022-09-16T13:22:55Z</dc:date>
    <item>
      <title>[kafka] Error sending message when leader is not master node</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-Error-sending-message-when-leader-is-not-master-node/m-p/69349#M79842</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My current setup has 1 management node and 3 worker node.&lt;BR /&gt;Server A(master) - kafka broker, ...&lt;BR /&gt;Server B - zookeeper, kafka broker, ...&lt;BR /&gt;Server C - zookeeper, kafka broker, ...&lt;BR /&gt;Server D - zookeeper, kafka broker, ...&lt;BR /&gt;&lt;BR /&gt;KAFKA-3.0.0-1.3.0.0.p0.40&lt;BR /&gt;CDH-5.14.2-1.cdh5.14.2.p0.3&lt;BR /&gt;&lt;BR /&gt;I am using a client machine in the same network to create topic, produce and consume message using kafka bat files.&lt;BR /&gt;&lt;BR /&gt;I realise when i create a topic, and the leader of the topic happens to be the broker on server A, everything works.&lt;BR /&gt;&lt;BR /&gt;But if the leader of the topic is any broker on server b/c/d, when i attempt to send any messages, it prompt the following message.&lt;BR /&gt;WARN - Got error produce response with correlation id _ on topic-partition ___, retrying. Error: UNKNOWN_TOPIC_OR_PARTITION&lt;BR /&gt;WARN - Receive unknown topic or partition error in produce request on partition ___. The topic/partition may not exist or the user may not have Describe access to it&lt;BR /&gt;ERROR - Error when sending message to topic ___ with key: null, value... UnknownTopicOrPartitionException: This server does not host this topic-partition.&lt;BR /&gt;&lt;BR /&gt;I am suspecting something to do with the zookeeper, but have no idea where to look deeper into.&lt;BR /&gt;I am a beginner in this area, any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:22:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-Error-sending-message-when-leader-is-not-master-node/m-p/69349#M79842</guid>
      <dc:creator>Qing</dc:creator>
      <dc:date>2022-09-16T13:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: [kafka] Error sending message when leader is not master node</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-Error-sending-message-when-leader-is-not-master-node/m-p/69396#M79843</link>
      <description>Manage to get it to work after putting broker and zookeeper on different node.&lt;BR /&gt;Not sure what is the reason, if anyone know please advise. Thanks!</description>
      <pubDate>Wed, 27 Jun 2018 07:37:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-Error-sending-message-when-leader-is-not-master-node/m-p/69396#M79843</guid>
      <dc:creator>Qing</dc:creator>
      <dc:date>2018-06-27T07:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: [kafka] Error sending message when leader is not master node</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-Error-sending-message-when-leader-is-not-master-node/m-p/69397#M79844</link>
      <description>Apologies, kafka broker can be same node as the zookeeper. Tested ok.&lt;BR /&gt;&lt;BR /&gt;My issue was due to dns&lt;BR /&gt;Host file not set properly.&lt;BR /&gt;Pardon me.</description>
      <pubDate>Wed, 27 Jun 2018 08:05:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-Error-sending-message-when-leader-is-not-master-node/m-p/69397#M79844</guid>
      <dc:creator>Qing</dc:creator>
      <dc:date>2018-06-27T08:05:53Z</dc:date>
    </item>
  </channel>
</rss>

