<?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: leadership load across the brokers in a cluster is evenly balanced. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/leadership-load-across-the-brokers-in-a-cluster-is-evenly/m-p/226691#M67104</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The error indicates that you are not passing the correct "zookeeper.connect" property value to the flag "--zookeeper" in the command line.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can get the&lt;STRONG&gt; "zookeeper.connect" &lt;/STRONG&gt;value from &lt;/P&gt;&lt;PRE&gt;Ambari UI --&amp;gt; Kafka --&amp;gt; Configs --&amp;gt; Kafka Broker --&amp;gt; "zookeeper.connect"&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;In my case the value was :&lt;EM&gt;  "amb25103.example.com:2181,amb25102.example.com:2181,amb25101.example.com:2181" &lt;/EM&gt;&lt;BR /&gt;So i had to use the following command:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# /usr/hdp/2.6.0.3-8/kafka/bin/kafka-preferred-replica-election.sh --zookeeper amb25103.example.com:2181,amb25102.example.com:2181,amb25101.example.com:2181&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2017 12:03:37 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-08-23T12:03:37Z</dc:date>
    <item>
      <title>leadership load across the brokers in a cluster is evenly balanced.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/leadership-load-across-the-brokers-in-a-cluster-is-evenly/m-p/226690#M67103</link>
      <description>&lt;P&gt; hi all&lt;/P&gt;&lt;P&gt;I need advice regarding the following problem &lt;/P&gt;&lt;P&gt;my target is to guarantees that the leadership load across the brokers in a cluster is evenly balanced.&lt;/P&gt;&lt;P&gt;sh /usr/hdp/2.6.0.3-8/kafka/bin/kafka-preferred-replica-election.sh --zookeeper zklist &lt;/P&gt;&lt;P&gt;Failed to start preferred replica election
org.I0Itec.zkclient.exception.ZkException: Unable to connect to zklist
        at org.I0Itec.zkclient.ZkConnection.connect(ZkConnection.java:71)
        at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1227)
        at org.I0Itec.zkclient.ZkClient.&amp;lt;init&amp;gt;(ZkClient.java:156)
        at org.I0Itec.zkclient.ZkClient.&amp;lt;init&amp;gt;(ZkClient.java:130)
        at org.I0Itec.zkclient.ZkClient.&amp;lt;init&amp;gt;(ZkClient.java:97)
        at kafka.utils.ZkUtils$.createZkClient(ZkUtils.scala:70)
        at kafka.admin.PreferredReplicaLeaderElectionCommand$.main(PreferredReplicaLeaderElectionCommand.scala:57)
        at kafka.admin.PreferredReplicaLeaderElectionCommand.main(PreferredReplicaLeaderElectionCommand.scala)
Caused by: java.net.UnknownHostException: zklist: Temporary failure in name resolution
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
        at java.net.InetAddress.getAllByName(InetAddress.java:1192)
        at java.net.InetAddress.getAllByName(InetAddress.java:1126)
        at org.apache.zookeeper.client.StaticHostProvider.&amp;lt;init&amp;gt;(StaticHostProvider.java:61)
        at org.apache.zookeeper.ZooKeeper.&amp;lt;init&amp;gt;(ZooKeeper.java:446)
        at org.apache.zookeeper.ZooKeeper.&amp;lt;init&amp;gt;(ZooKeeper.java:380)
        at org.I0Itec.zkclient.ZkConnection.connect(ZkConnection.java:69)&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 03:10:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/leadership-load-across-the-brokers-in-a-cluster-is-evenly/m-p/226690#M67103</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-23T03:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: leadership load across the brokers in a cluster is evenly balanced.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/leadership-load-across-the-brokers-in-a-cluster-is-evenly/m-p/226691#M67104</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The error indicates that you are not passing the correct "zookeeper.connect" property value to the flag "--zookeeper" in the command line.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can get the&lt;STRONG&gt; "zookeeper.connect" &lt;/STRONG&gt;value from &lt;/P&gt;&lt;PRE&gt;Ambari UI --&amp;gt; Kafka --&amp;gt; Configs --&amp;gt; Kafka Broker --&amp;gt; "zookeeper.connect"&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;In my case the value was :&lt;EM&gt;  "amb25103.example.com:2181,amb25102.example.com:2181,amb25101.example.com:2181" &lt;/EM&gt;&lt;BR /&gt;So i had to use the following command:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# /usr/hdp/2.6.0.3-8/kafka/bin/kafka-preferred-replica-election.sh --zookeeper amb25103.example.com:2181,amb25102.example.com:2181,amb25101.example.com:2181&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 12:03:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/leadership-load-across-the-brokers-in-a-cluster-is-evenly/m-p/226691#M67104</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-23T12:03:37Z</dc:date>
    </item>
  </channel>
</rss>

