<?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: validate Kafka reassignment for partitions in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242892#M204691</link>
    <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/234832/@Michael%20Bronson"&gt;@Michael Bronson&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sorry, I should have misunderstood you. I thought your primary worry was how to balance the topics, including replica and Isr as you depicted in your --describe examples with missing Isr's if not you want to validate the output kafka-topics.sh --describe against what metrics? Please help me understand your request. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A Kafka administrator's biggest worry is NOT to have the Isr's in sync. I am happy you got some interesting content in this thread&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 05:54:21 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2019-01-25T05:54:21Z</dc:date>
    <item>
      <title>validate Kafka reassignment for partitions</title>
      <link>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242889#M204688</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;I want to validate the balanced of the topics , include
replica and Isr&lt;/P&gt;&lt;P&gt;I will give some example of wrong balanced ( master01 is the zookeper server , and we defined 3 replicate )&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on that example we can see that kafka brokers are missing
from some Isr&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/kafka-broker/bin/kafka-topics.sh  --describe --zookeeper  master01:2181 --topic mno.de.pola.trump  Topic:mno.de.pola.trump  PartitionCount:100  ReplicationFactor:3  Configs:  Topic:
mno.de.pola.trump  Partition: 0  Leader: 1017  Replicas: 1017,1018,1016   Isr: 1017,1018,1016  Topic:
mno.de.pola.trump  Partition: 1  Leader: 1018  Replicas: 1018,1016,1017   Isr: 1018,1017,1016  Topic:
mno.de.pola.trump  Partition: 2  Leader: 1016  Replicas: 1016,1017,1018   Isr: 1016,1018  Topic:
mno.de.pola.trump  Partition: 3  Leader: 1017  Replicas: 1017,1016,1018   Isr: 1017,1018,1016  Topic:
mno.de.pola.trump  Partition: 4  Leader: 1018  Replicas: 1018,1017,1016   Isr: 1018,1017,1016  Topic:
mno.de.pola.trump  Partition: 5  Leader: 1016  Replicas: 1016,1018,1017   Isr: 1016,1018,1017  Topic:
mno.de.pola.trump  Partition: 6  Leader: 1017  Replicas: 1017,1018,1016   Isr: 1017,1018&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;on the following example we can see that Leader on
partitions are more on broker 1017 &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/kafka-broker/bin/kafka-topics.sh  --describe --zookeeper  master01:2181 --topic mno.de.pola.trump  Topic:mno.de.pola.trump   PartitionCount:100  ReplicationFactor:3  Configs:  Topic:
mno.de.pola.trump  Partition: 0  Leader: 1017  Replicas: 1017,1018,1016  Isr: 1017,1018,1016  Topic:
mno.de.pola.trump  Partition: 1  Leader: 1018  Replicas: 1018,1016,1017  Isr: 1018,1017,1016  Topic:
mno.de.pola.trump  Partition: 2  Leader: 1017  Replicas: 1016,1017,1018  Isr: 1016,1018.1017  Topic:
mno.de.pola.trump  Partition: 3  Leader: 1017  Replicas: 1017,1016,1018  Isr: 1017,1018,1016  Topic:
mno.de.pola.trump  Partition: 4  Leader: 1018  Replicas: 1018,1017,1016  Isr: 1018,1017,1016  Topic:
mno.de.pola.trump  Partition: 5  Leader: 1016  Replicas: 1016,1018,1017  Isr: 1016,1018,1017  Topic:
mno.de.pola.trump  Partition: 6  Leader: 1017  Replicas: 1017,1018,1016  Isr: 1017,1018,1016&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;on the following example we can see that brokers are missing
from Replica  &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/kafka-broker/bin/kafka-topics.sh  --describe --zookeeper  master01:2181 --topic mno.de.pola.trump  Topic:mno.de.pola.trump  PartitionCount:100  ReplicationFactor:3  Configs:  Topic:
mno.de.pola.trump  Partition: 0  Leader: 1017  Replicas: 1017,1018       Isr: 1017,1018,1016  Topic:
mno.de.pola.trump  Partition: 1  Leader: 1018  Replicas: 1018,1016,1017  Isr: 1018,1017,1016  Topic:
mno.de.pola.trump  Partition: 2  Leader: 1017  Replicas: 1016,1017,1018  Isr: 1016,1018,1017  Topic:
mno.de.pola.trump  Partition: 3  Leader: 1017  Replicas: 1017,1016       Isr: 1017,1018,1016  Topic:
mno.de.pola.trump  Partition: 4  Leader: 1018  Replicas: 1018,1017,1016  Isr: 1018,1017,1016  Topic:
mno.de.pola.trump  Partition: 5  Leader: 1016  Replicas: 1016,1018,1017  Isr: 1016,1018,1017  Topic:
mno.de.pola.trump  Partition: 6  Leader: 1017 Replicas:  1017,1018,1016  Isr: 1017,1018,1016&lt;/PRE&gt;&lt;P&gt;And so on&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;  so
my question - I will happy to know about some tool that can validate the output
from kafka-topics.sh  --describe&lt;/P&gt;&lt;P&gt;  any
ideas about this&lt;/P&gt;&lt;P&gt;example of good balanced configuration&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/kafka-broker/bin/kafka-topics.sh  --describe --zookeeper  master01:2181 --topic mno.de.pola.trump
Topic: mno.de.pola.trump      PartitionCount:100      ReplicationFactor:3     Configs:
Topic: mno.de.pola.trump     Partition: 0    Leader: 1017    Replicas: 1017,1018,1016        Isr: 1017,1018,1016
Topic: mno.de.pola.trump     Partition: 1    Leader: 1018    Replicas: 1018,1016,1017        Isr: 1018,1017,1016
Topic: mno.de.pola.trump     Partition: 2    Leader: 1016    Replicas: 1016,1017,1018        Isr: 1016,1018,1017
Topic: mno.de.pola.trump     Partition: 3    Leader: 1017    Replicas: 1017,1016,1018        Isr: 1017,1018,1016
Topic: mno.de.pola.trump     Partition: 4    Leader: 1018    Replicas: 1018,1017,1016        Isr: 1018,1017,1016
Topic: mno.de.pola.trump     Partition: 5    Leader: 1016    Replicas: 1016,1018,1017        Isr: 1016,1018,1017&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 01:00:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242889#M204688</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-01-25T01:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: validate Kafka reassignment for partitions</title>
      <link>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242890#M204689</link>
      <description>&lt;P&gt;&lt;A href="@Michael Bronson"&gt;&lt;EM&gt;@Michael Bronson&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;How to Rebalance Topics in a Kafka Cluster&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Here is a superb reference by Upendra Mutori to sort out your current issue rebalancing &lt;A href="https://blog.imaginea.com/how-to-rebalance-topics-in-kafka-cluster/" target="_blank"&gt;kafka topics&lt;/A&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Kafka Monitoring Tools&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any monitoring tools with JMX support should be able to monitor a Kafka cluster. Here are some monitoring tools :&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;First one is &lt;A href="https://github.com/HariSekhon/nagios-plugins/blob/master/check_kafka.pl"&gt;check_kafka.pl&lt;/A&gt; from Hari Sekhon. It performs a complete end to end test, i.e. it inserts a message in Kafka as a producer and then extracts it as a consumer. This makes our life easier when measuring service times.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Another useful tool is &lt;A href="https://web.archive.org/web/20150918215809/http://quantifind.com/KafkaOffsetMonitor/" target="_blank"&gt; KafkaOffsetMonitor&lt;/A&gt; for monitoring Kafka consumers and their position (offset) in the queue. It aids our understanding of how our queue grows and which consumers groups are lagging behind.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Last but not least, the LinkedIn folks have developed what I think is the smartest tool out there: &lt;A href="https://engineering.linkedin.com/apache-kafka/burrow-kafka-consumer-monitoring-reinvented"&gt;Burrow&lt;/A&gt;. It analyzes consumer offsets and lags over a window of time and determines the consumer status. You can retrieve this status over an HTTP endpoint and then plug it into your favourite monitoring tool (&lt;A href="https://www.serverdensity.com/"&gt;Server Density&lt;/A&gt; for example).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;There is also Yahoo’s &lt;A href="https://github.com/yahoo/kafka-manager"&gt;Kafka-Manager&lt;/A&gt;. While it does include some basic monitoring, it is more of a management tool. If you are just looking for a Kafka management tool, check out AirBnb’s &lt;A href="https://github.com/airbnb/kafkat"&gt;kafkat&lt;/A&gt;. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HTH&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 02:18:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242890#M204689</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-01-25T02:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: validate Kafka reassignment for partitions</title>
      <link>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242891#M204690</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt; thank you so much for the excellent explanation , these are really great tools and very useful , but as you can understand from my equation I am trying to validate the output    , and after I review on all tools they cant validate this simple output , but they have other very useful things , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 05:07:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242891#M204690</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-01-25T05:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: validate Kafka reassignment for partitions</title>
      <link>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242892#M204691</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/234832/@Michael%20Bronson"&gt;@Michael Bronson&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sorry, I should have misunderstood you. I thought your primary worry was how to balance the topics, including replica and Isr as you depicted in your --describe examples with missing Isr's if not you want to validate the output kafka-topics.sh --describe against what metrics? Please help me understand your request. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A Kafka administrator's biggest worry is NOT to have the Isr's in sync. I am happy you got some interesting content in this thread&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 05:54:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242892#M204691</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-01-25T05:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: validate Kafka reassignment for partitions</title>
      <link>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242893#M204692</link>
      <description>&lt;P&gt;the goal of the validation , is to check the output and find problems as leaders is missing or kafka brokers ids are missing from the output or missing brokers ids from Isr , so I just want to check the output and if I will found problems on the topic then we need to do  : Kafka reassignment&lt;/P&gt;&lt;H1&gt;&lt;/H1&gt;</description>
      <pubDate>Fri, 25 Jan 2019 06:18:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242893#M204692</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-01-25T06:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: validate Kafka reassignment for partitions</title>
      <link>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242894#M204693</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/234832/@Michael%20Bronson"&gt;@Michael Bronson&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Have a look at these 2 tools &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;A href="https://kafka-utils.readthedocs.io/en/latest/kafka_check.html" target="_blank"&gt;Kafka check&lt;/A&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="http://www.kafkatool.com/" target="_blank"&gt;Kafka Tool&lt;/A&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Happy hadooping &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 06:38:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242894#M204693</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-01-25T06:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: validate Kafka reassignment for partitions</title>
      <link>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242895#M204694</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I untar the tool kafka-utils-1.8.0.tar.gz &lt;/P&gt;&lt;P&gt;also read the doc - &lt;A href="https://kafka-utils.readthedocs.io/en/latest/kafka_check.html" target="_blank"&gt;https://kafka-utils.readthedocs.io/en/latest/kafka_check.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but not succeeded to run the check , &lt;/P&gt;&lt;P&gt;do you use this tool? &lt;/P&gt;&lt;P&gt;maybe I not configured some files?&lt;/P&gt;&lt;P&gt;do you have example from your ENV ?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 16:00:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242895#M204694</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-01-25T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: validate Kafka reassignment for partitions</title>
      <link>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242896#M204695</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/234832/@Michael%20Bronson"&gt;@Michael Bronson&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;No, unfortunately, I don't have a test cluster, the configuration looks straight forward just create a yaml i.e kafka.yaml file in &lt;STRONG&gt;/etc/kafka_discovery&lt;/STRONG&gt; which you export as &lt;STRONG&gt;KAFKA_DISCOVERY_DIR&lt;/STRONG&gt; look at the  &lt;STRONG&gt;README.&lt;/STRONG&gt;&lt;STRONG&gt;md&lt;/STRONG&gt;  file. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you tokenize your sensitive hostname and share the YAML file you created?  I am sure we can sort that out I can only spin a single node kafka broker this weekend and test.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please revert&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 23:13:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/validate-Kafka-reassignment-for-partitions/m-p/242896#M204695</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-01-25T23:13:07Z</dc:date>
    </item>
  </channel>
</rss>

