<?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 -  broker.id changed after HDP upgrade in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-broker-id-changed-after-HDP-upgrade/m-p/145991#M32336</link>
    <description>&lt;P&gt;I recently upgraded HDP and kafka was one of the component.&lt;/P&gt;&lt;P&gt;HDP Version : 2.4&lt;/P&gt;&lt;P&gt;Kafka - 0.9.0.2&lt;/P&gt;&lt;P&gt;The upgrade was fine and smooth. After the upgrade and finalize, producer and consumers were failing. After debugging I found that the broker.ids are changed to 1001 from 1. &lt;/P&gt;&lt;P&gt;Before upgrade broker.ids are 1,2,3&lt;/P&gt;&lt;P&gt;after upgrade , broker.ids are 1001,1002,1003. &lt;/P&gt;&lt;P&gt;The problem is all the topics are pointing to old broker.ids.   &lt;/P&gt;&lt;PRE&gt;[kafka@usw2stdpka01 ~]$ /usr/hdp/2.4.0.0-169/kafka/bin/kafka-topics.sh --zookeeper usw2stdpzo01:2181  --describe --topic search_log
Topic:search_log	PartitionCount:10	ReplicationFactor:3	Configs:
	Topic: search_log	Partition: 0	Leader: 0	Replicas: 1,2,0	Isr: 0
	Topic: search_log	Partition: 1	Leader: 0	Replicas: 2,0,1	Isr: 0
	 		
&lt;/PRE&gt;&lt;P&gt;I created a test topic and it is pointing to new broker_ids  &lt;/P&gt;&lt;PRE&gt;[kafka@usw2stdpka01 ~]$ /usr/hdp/2.4.0.0-169/kafka/bin/kafka-topics.sh --zookeeper usw2stdpzo01:2181  --describe --topic test
Topic:test	PartitionCount:10	ReplicationFactor:2	Configs:
	Topic: test	Partition: 0	Leader: 1001	Replicas: 1001,1002	Isr: 1001,1002
	Topic: test	Partition: 1	Leader: 1002	Replicas: 1002,1003	Isr: 1002,1003


&lt;/PRE&gt;&lt;P&gt;Changing the topics with new broker id is not possible and it is time consuming.    How do I change it back to original broker_ids.   I couldn't find the broker_id info in the server.properties or in ambari console config.   This results in failure of producer and consumer messages. &lt;/P&gt;</description>
    <pubDate>Sun, 19 Jun 2016 07:52:58 GMT</pubDate>
    <dc:creator>anand_ranganath</dc:creator>
    <dc:date>2016-06-19T07:52:58Z</dc:date>
    <item>
      <title>Kafka -  broker.id changed after HDP upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-broker-id-changed-after-HDP-upgrade/m-p/145991#M32336</link>
      <description>&lt;P&gt;I recently upgraded HDP and kafka was one of the component.&lt;/P&gt;&lt;P&gt;HDP Version : 2.4&lt;/P&gt;&lt;P&gt;Kafka - 0.9.0.2&lt;/P&gt;&lt;P&gt;The upgrade was fine and smooth. After the upgrade and finalize, producer and consumers were failing. After debugging I found that the broker.ids are changed to 1001 from 1. &lt;/P&gt;&lt;P&gt;Before upgrade broker.ids are 1,2,3&lt;/P&gt;&lt;P&gt;after upgrade , broker.ids are 1001,1002,1003. &lt;/P&gt;&lt;P&gt;The problem is all the topics are pointing to old broker.ids.   &lt;/P&gt;&lt;PRE&gt;[kafka@usw2stdpka01 ~]$ /usr/hdp/2.4.0.0-169/kafka/bin/kafka-topics.sh --zookeeper usw2stdpzo01:2181  --describe --topic search_log
Topic:search_log	PartitionCount:10	ReplicationFactor:3	Configs:
	Topic: search_log	Partition: 0	Leader: 0	Replicas: 1,2,0	Isr: 0
	Topic: search_log	Partition: 1	Leader: 0	Replicas: 2,0,1	Isr: 0
	 		
&lt;/PRE&gt;&lt;P&gt;I created a test topic and it is pointing to new broker_ids  &lt;/P&gt;&lt;PRE&gt;[kafka@usw2stdpka01 ~]$ /usr/hdp/2.4.0.0-169/kafka/bin/kafka-topics.sh --zookeeper usw2stdpzo01:2181  --describe --topic test
Topic:test	PartitionCount:10	ReplicationFactor:2	Configs:
	Topic: test	Partition: 0	Leader: 1001	Replicas: 1001,1002	Isr: 1001,1002
	Topic: test	Partition: 1	Leader: 1002	Replicas: 1002,1003	Isr: 1002,1003


&lt;/PRE&gt;&lt;P&gt;Changing the topics with new broker id is not possible and it is time consuming.    How do I change it back to original broker_ids.   I couldn't find the broker_id info in the server.properties or in ambari console config.   This results in failure of producer and consumer messages. &lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 07:52:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-broker-id-changed-after-HDP-upgrade/m-p/145991#M32336</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-06-19T07:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka -  broker.id changed after HDP upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-broker-id-changed-after-HDP-upgrade/m-p/145992#M32337</link>
      <description>&lt;P&gt;For troubleshooting this and other potential Kafka upgrade issues please see&lt;A href="https://community.hortonworks.com/content/kbentry/29224/troubleshooting-kafka-upgrade.html"&gt; this&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 07:55:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-broker-id-changed-after-HDP-upgrade/m-p/145992#M32337</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-06-19T07:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka -  broker.id changed after HDP upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-broker-id-changed-after-HDP-upgrade/m-p/145993#M32338</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt;, that resolved my problem. &lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 08:21:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-broker-id-changed-after-HDP-upgrade/m-p/145993#M32338</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-06-19T08:21:04Z</dc:date>
    </item>
  </channel>
</rss>

