<?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: kafka upgrade from 0.9 to 0.10 in HDP 2.6.0 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-upgrade-from-0-9-to-0-10-in-HDP-2-6-0/m-p/207201#M74056</link>
    <description>&lt;P&gt;There is a way to do the upgrade, and keeping the kafka-logs data?&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48406/hgalante.html" nodeid="48406"&gt;@hgalante &lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2018 23:28:07 GMT</pubDate>
    <dc:creator>MarceloSaiedOK</dc:creator>
    <dc:date>2018-02-06T23:28:07Z</dc:date>
    <item>
      <title>kafka upgrade from 0.9 to 0.10 in HDP 2.6.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-upgrade-from-0-9-to-0-10-in-HDP-2-6-0/m-p/207198#M74053</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;ive upgrades HDP from 2.4 to 2.5 to 2.6. now kafka is at 0.10.1 . im have Kerberos configured and working with Ranger&lt;BR /&gt;I can create , produce , and consuming with zookeeper ( usinf  kinit and a user that have permissions at Ranger rule)&lt;/P&gt;&lt;PRE&gt;WORKING OK
./kafka-console-producer.sh --broker-list ctl-t01.my.domain:6667,ctl-t02.my.domain:6667,ctl-t01.my.domain:6667 --topic bptopic --security-protocol PLAINTEXTSASL
./kafka-console-consumer.sh --bootstrap-server ctl-t01.my.domain:2181:6667 --topic bptopic --security-protocol PLAINTEXTSASL --from-beginning
&lt;/PRE&gt;&lt;P&gt;when i use the Brokers instead of zookeper , the consumer ,  is not consuming&lt;/P&gt;&lt;PRE&gt;NOT WORKING

./kafka-console-consumer.sh --zookeeper  ctl-t01.my.domain:2181 --topic bptopic--security-protocol PLAINTEXTSASL --from-beginning&lt;/PRE&gt;&lt;P&gt;i have cheked logs , and documentation , without any solution.&lt;/P&gt;&lt;P&gt;Could be , that i need to delete at zookepper rmr /brokers? ( im not sure, but in another environment , that was the solution. deleting all the topics..). i want to see if i can keep all the topics , since we keep them for more than a week, and deleting them will be the last resource.&lt;BR /&gt;&lt;BR /&gt;thanks much&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/349/iroberts.html"&gt;@Ian Roberts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 02:11:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-upgrade-from-0-9-to-0-10-in-HDP-2-6-0/m-p/207198#M74053</guid>
      <dc:creator>MarceloSaiedOK</dc:creator>
      <dc:date>2018-01-31T02:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: kafka upgrade from 0.9 to 0.10 in HDP 2.6.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-upgrade-from-0-9-to-0-10-in-HDP-2-6-0/m-p/207199#M74054</link>
      <description>&lt;P&gt;seem to be that deleting the brokers at zookeper  do the trick . &lt;BR /&gt;yet all the topic need to be recreated, and the data of the topics will be lost&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/KAFKA-4987" target="_blank"&gt;https://issues.apache.org/jira/browse/KAFKA-4987&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 00:13:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-upgrade-from-0-9-to-0-10-in-HDP-2-6-0/m-p/207199#M74054</guid>
      <dc:creator>MarceloSaiedOK</dc:creator>
      <dc:date>2018-02-01T00:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: kafka upgrade from 0.9 to 0.10 in HDP 2.6.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-upgrade-from-0-9-to-0-10-in-HDP-2-6-0/m-p/207200#M74055</link>
      <description>&lt;P&gt;First backup some metadata related to your topics&lt;/P&gt;&lt;PRE&gt;su - kafka

&amp;gt;sript&amp;gt;
for i in
`/usr/hdp/current/kafka-broker/bin/kafka-consumer-groups.sh --zookeeper server-02:2181  --list --security-protocol
PLAINTEXTSASL 2&amp;gt;&amp;amp;1 ` 
do 
     echo $i
     /usr/hdp/current/kafka-broker/bin/kafka-consumer-groups.sh --zookeeper server-01:2181 --group $i --describe 
done
&amp;lt;script&amp;lt;



&lt;/PRE&gt;&lt;P&gt;describe topics&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/kafka-broker/bin/kafka-topics.sh --describe --zookeeper sr-hadctl-xt01:2181 --topic bptopic
&lt;/PRE&gt;&lt;P&gt; now remove the brokers metadata fron zookeeper&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;UL&gt;&lt;LI&gt; Delete
topic (from zookeeper)&lt;/LI&gt;&lt;/UL&gt;&lt;TABLE&gt;
 &lt;TBODY&gt;&lt;TR&gt;
  &lt;TD&gt;&lt;PRE&gt;/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server `hostname -f`:2181

rmr /brokers&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Create Kafka  
tópic (at Broker server)&lt;/LI&gt;&lt;/UL&gt;&lt;TABLE&gt;
 &lt;TBODY&gt;&lt;TR&gt;
  &lt;TD&gt;su -
  kafka
  &lt;P&gt;cd
  /usr/hdp/current/kafka-broker/bin&lt;/P&gt;
  
  &lt;P&gt;./kafka-topics.sh
  --create --zookeeper server-2:2181 --partitions 1 --replication-factor
  1 --topic bptopic&lt;/P&gt;&lt;/TD&gt;
 &lt;/TR&gt;
&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Altering retention time&lt;/P&gt;&lt;PRE&gt; OPTION 1
  [root@server-02 ~]#
  /usr/hdp/current/kafka-broker/bin/kafka-topics.sh --zookeeper  server-01:2181 --alter --topic bptopic
  --config retention.ms=86400000

  WARNING:
  Altering topic configuration from this script has been deprecated and may be
  removed in future releases.

           Going forward, please use
  kafka-configs.sh for this functionality

  Updated
  config for topic "bptopic".

  OPTION 2
  [root@server-02 ~]# /usr/hdp/current/kafka-broker/bin/kafka-configs.sh
  --zookeeper  sr-hadctl-xt01:2181
  --alter --entity-type topics --entity-name bptopic --add-config
  'retention.ms=864000
&lt;/PRE&gt;&lt;PRE&gt;  Check config
  [root@server-02 ~]# /usr/hdp/current/kafka-broker/bin/kafka-topics.sh
  --describe --zookeeper sr-hadctl-xt01:2181 --topic bptopic
  Topic:bptopic   PartitionCount:1        ReplicationFactor:1     Configs:retention.ms=86400000
          Topic: bptopic  Partition: 0    Leader: 1001    Replicas: 1001  Isr: 1001
&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 06 Feb 2018 00:52:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-upgrade-from-0-9-to-0-10-in-HDP-2-6-0/m-p/207200#M74055</guid>
      <dc:creator>MarceloSaiedOK</dc:creator>
      <dc:date>2018-02-06T00:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: kafka upgrade from 0.9 to 0.10 in HDP 2.6.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-upgrade-from-0-9-to-0-10-in-HDP-2-6-0/m-p/207201#M74056</link>
      <description>&lt;P&gt;There is a way to do the upgrade, and keeping the kafka-logs data?&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48406/hgalante.html" nodeid="48406"&gt;@hgalante &lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 23:28:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-upgrade-from-0-9-to-0-10-in-HDP-2-6-0/m-p/207201#M74056</guid>
      <dc:creator>MarceloSaiedOK</dc:creator>
      <dc:date>2018-02-06T23:28:07Z</dc:date>
    </item>
  </channel>
</rss>

