<?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: Run multiple broker versions in the same cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226582#M60880</link>
    <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/11120/silviodelval.html"&gt;@Silvio del Val&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, you can install and manage the second set of Kafka brokers manually (not through Ambari). As for Zookeeper, it can manage multiple Kafka clusters. Just "chroot" them differently&lt;/P&gt;&lt;P&gt;{zookeeperHost}:{portnumber}/{kafkacluster1}&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;{zookeeperHost}:{portnumber}/{kafkacluster2}&lt;/P&gt;&lt;P&gt;Take a look at the link below on how zookeeper manages sessions and on chroot.&lt;/P&gt;&lt;P&gt;&lt;A href="https://zookeeper.apache.org/doc/r3.2.2/zookeeperProgrammers.html#ch_zkSessions" target="_blank"&gt;https://zookeeper.apache.org/doc/r3.2.2/zookeeperProgrammers.html#ch_zkSessions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To do this:&lt;/P&gt;&lt;P&gt;1) Create the chroot in Zookeeper with the below commands&lt;/P&gt;&lt;PRE&gt;zkCli.sh -server yourZookeeperHost:2181
&lt;/PRE&gt;&lt;PRE&gt;# note the empty brackets below are _required_
create /kafkaCluster1 []&lt;/PRE&gt;&lt;P&gt;This will create a path called "kafkaCluster1".  You can verify this by running the "ls/" command.  &lt;/P&gt;&lt;P&gt;(* replace "yourZookeeperHost" and the port number with the appropriate values from you environment)&lt;/P&gt;&lt;P&gt;2) For the Kafka brokers configs, under "zookeeper.connect", add a "chroot" path which will make all kafka data for this cluster appear under that particular path. To do this give a connection string in the form &lt;CODE&gt;kafka_v08_1:port1,kafka_v08_2:port2,kafka_v08_3:port3 yourZookeeperHost:2181/kafkaCluster1&lt;/CODE&gt; which would put all this cluster's data under the path &lt;CODE&gt;yourZookeeperHost:2181/kafkaCluster1&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;3) For the Kafka consumer configs, under "zookeeper.connect", input the same as you did in step 2 for the brokers &lt;/P&gt;&lt;P&gt;4) Repeat steps 1-3 for your second Kafka cluster using a different "chroot" path&lt;/P&gt;&lt;P&gt;For more explanation of Kafka configs take a look at the below link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://kafka.apache.org/08/documentation/#configuration" target="_blank"&gt;https://kafka.apache.org/08/documentation/#configuration&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2017 22:34:36 GMT</pubDate>
    <dc:creator>egarelnabi</dc:creator>
    <dc:date>2017-05-10T22:34:36Z</dc:date>
    <item>
      <title>Run multiple broker versions in the same cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226581#M60879</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are currently running 4 kafka brokers v0.8 in our cluster (HDP-2.3.2-2950) and we would like to test some v0.10 brokers in the same cluster. Is this possible? I was thinking about installing manuallly in some machines of the cluster from HDP-2.6.0 repo and apart from Ambari, but I don't know how this will affect zookeepers and if the whole of brokers will be seen as 2 groups of brokers and will work indepently.&lt;/P&gt;&lt;P&gt;I would need advice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Silvio&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 20:24:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226581#M60879</guid>
      <dc:creator>silvio_delval</dc:creator>
      <dc:date>2017-05-10T20:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple broker versions in the same cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226582#M60880</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/11120/silviodelval.html"&gt;@Silvio del Val&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, you can install and manage the second set of Kafka brokers manually (not through Ambari). As for Zookeeper, it can manage multiple Kafka clusters. Just "chroot" them differently&lt;/P&gt;&lt;P&gt;{zookeeperHost}:{portnumber}/{kafkacluster1}&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;{zookeeperHost}:{portnumber}/{kafkacluster2}&lt;/P&gt;&lt;P&gt;Take a look at the link below on how zookeeper manages sessions and on chroot.&lt;/P&gt;&lt;P&gt;&lt;A href="https://zookeeper.apache.org/doc/r3.2.2/zookeeperProgrammers.html#ch_zkSessions" target="_blank"&gt;https://zookeeper.apache.org/doc/r3.2.2/zookeeperProgrammers.html#ch_zkSessions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To do this:&lt;/P&gt;&lt;P&gt;1) Create the chroot in Zookeeper with the below commands&lt;/P&gt;&lt;PRE&gt;zkCli.sh -server yourZookeeperHost:2181
&lt;/PRE&gt;&lt;PRE&gt;# note the empty brackets below are _required_
create /kafkaCluster1 []&lt;/PRE&gt;&lt;P&gt;This will create a path called "kafkaCluster1".  You can verify this by running the "ls/" command.  &lt;/P&gt;&lt;P&gt;(* replace "yourZookeeperHost" and the port number with the appropriate values from you environment)&lt;/P&gt;&lt;P&gt;2) For the Kafka brokers configs, under "zookeeper.connect", add a "chroot" path which will make all kafka data for this cluster appear under that particular path. To do this give a connection string in the form &lt;CODE&gt;kafka_v08_1:port1,kafka_v08_2:port2,kafka_v08_3:port3 yourZookeeperHost:2181/kafkaCluster1&lt;/CODE&gt; which would put all this cluster's data under the path &lt;CODE&gt;yourZookeeperHost:2181/kafkaCluster1&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;3) For the Kafka consumer configs, under "zookeeper.connect", input the same as you did in step 2 for the brokers &lt;/P&gt;&lt;P&gt;4) Repeat steps 1-3 for your second Kafka cluster using a different "chroot" path&lt;/P&gt;&lt;P&gt;For more explanation of Kafka configs take a look at the below link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://kafka.apache.org/08/documentation/#configuration" target="_blank"&gt;https://kafka.apache.org/08/documentation/#configuration&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 22:34:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226582#M60880</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2017-05-10T22:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple broker versions in the same cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226583#M60881</link>
      <description>&lt;P&gt;Well, we have currently running 4 v0.8 brokers with default config. How should I config Zookeepers to specify new brokers in second cluster?&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 22:49:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226583#M60881</guid>
      <dc:creator>silvio_delval</dc:creator>
      <dc:date>2017-05-10T22:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple broker versions in the same cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226584#M60882</link>
      <description>&lt;P&gt;Well, we have currently running 4 v0.8 brokers with default config. How should I config Zookeepers to specify new brokers in second cluster?&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 23:04:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226584#M60882</guid>
      <dc:creator>silvio_delval</dc:creator>
      <dc:date>2017-05-10T23:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple broker versions in the same cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226585#M60883</link>
      <description>&lt;P&gt;I enter ZkCli but I don't know how to do&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 23:05:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226585#M60883</guid>
      <dc:creator>silvio_delval</dc:creator>
      <dc:date>2017-05-10T23:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple broker versions in the same cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226586#M60884</link>
      <description>&lt;P&gt;I've updated my response to include the steps. &lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 23:18:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226586#M60884</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2017-05-10T23:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple broker versions in the same cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226587#M60885</link>
      <description>&lt;P&gt;So, do I have to chroot existing cluster too? This 4 brokers group is in production and I can´t stop them.&lt;/P&gt;&lt;P&gt;Apart from this, I'll install 3 new brokers in a second cluster but this will be v0.10. Can I use same zookeepers? I have HDP-2.3.2-2950 and I'll install this second group from HDP-2.6 repositories&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 17:12:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226587#M60885</guid>
      <dc:creator>silvio_delval</dc:creator>
      <dc:date>2017-05-11T17:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple broker versions in the same cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226588#M60886</link>
      <description>&lt;P&gt;You do not need to change the path for your existing cluster.  Leave it as is.  Chroot the second/new cluster.  As for versions, you should be ok.  To make your config life easier, I suggest you not install both Kafka versions on the same nodes though.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 22:03:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226588#M60886</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2017-05-11T22:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple broker versions in the same cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226589#M60887</link>
      <description>&lt;P&gt;Great!! Well, I was thinkg about installing these v0.10 brokers in other empty machines. I suppose it's imposible to manage these v0.10 brokers in same Ambari, right? Maybe I should have both HDP versions installed, but only one of them is current...well, to difficult maybe.&lt;/P&gt;&lt;P&gt;Anyway, thank you very very much for your answers, you saved my life &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'll mark your answer as accepted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 22:52:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226589#M60887</guid>
      <dc:creator>silvio_delval</dc:creator>
      <dc:date>2017-05-11T22:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple broker versions in the same cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226590#M60888</link>
      <description>&lt;P&gt;Glad I could help.  No, unfortunately you won't be able to manage both clusters with the same Ambari.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 22:55:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Run-multiple-broker-versions-in-the-same-cluster/m-p/226590#M60888</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2017-05-11T22:55:15Z</dc:date>
    </item>
  </channel>
</rss>

