<?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: ISSUE with kafka while enabling kerberos in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181179#M143409</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14624/parameswarnc.html"&gt;@Param NC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have tried above commands For me get is working but while  changing port and host, manually using the above command facing below error&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Authentication is not valid : /brokers/ids/1001&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 14:27:54 GMT</pubDate>
    <dc:creator>satish_p</dc:creator>
    <dc:date>2019-07-11T14:27:54Z</dc:date>
    <item>
      <title>ISSUE with kafka while enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181173#M143403</link>
      <description>&lt;P&gt;i am using kafka version 0.9.0&lt;/P&gt;&lt;P&gt;using two kafka brokers.&lt;/P&gt;&lt;P&gt;After we enable the kerberos, the kafka producer starts showing leadernotfound exception where as the describe command shows that leader is assigned to the topic.&lt;/P&gt;&lt;P&gt;Also,i noticed something weird about kafka znode as follows:&lt;/P&gt;&lt;P&gt;If we try to get the information for kafka broker znode after enabling kerberos, it shows as below:&lt;/P&gt;&lt;P&gt;get /brokers/ids/1002
{"jmx_port":-1,"timestamp":"1490888565689","endpoints":["PLAINTEXTSASL://xxxx.domain.com:9092"],&lt;STRONG&gt;"host":null&lt;/STRONG&gt;,"version":2,&lt;STRONG&gt;"port":-1&lt;/STRONG&gt;} &lt;/P&gt;&lt;P&gt;cZxid = 0x1300000241 &lt;/P&gt;&lt;P&gt;ctime = Thu Mar 30 21:12:45 IST 2017 &lt;/P&gt;&lt;P&gt;mZxid = 0x1300000241 &lt;/P&gt;&lt;P&gt;mtime = Thu Mar 30 21:12:45 IST 2017 &lt;/P&gt;&lt;P&gt;pZxid = 0x1300000241
cversion = 0 &lt;/P&gt;&lt;P&gt;dataVersion = 0 &lt;/P&gt;&lt;P&gt;aclVersion = 0 &lt;/P&gt;&lt;P&gt;ephemeralOwner = 0x15b1439a498001a &lt;/P&gt;&lt;P&gt;dataLength = 140 &lt;/P&gt;&lt;P&gt;numChildren = 0&lt;/P&gt;&lt;P&gt;The host and the port information is not getting configured. I tried configuring these(advertised.host.name and advertised.port) through ambari as well as setting proprty in server.properties file and restarting the kafka manually but it is not getting reflected.&lt;/P&gt;&lt;P&gt;But, if i change the protocol from PLAINTEXTSASL/SASL_PLAINTEXT to simply PLAINTEXT then the host and port information is gets updated correctly as below.&lt;/P&gt;&lt;P&gt;get /brokers/ids/1002&lt;/P&gt;&lt;P&gt;
{"jmx_port":-1,"timestamp":"1490888108079","endpoints":["PLAINTEXT://0.0.0.0:9092"],"host":"xxxx.domain.com","version":2,"port":9092} &lt;/P&gt;&lt;P&gt;cZxid = 0x1300000230 &lt;/P&gt;&lt;P&gt;ctime = Thu Mar 30 21:05:08 &lt;/P&gt;&lt;P&gt;IST 2017
mZxid = 0x1300000230 &lt;/P&gt;&lt;P&gt;mtime = Thu Mar 30 21:05:08 IST 2017 &lt;/P&gt;&lt;P&gt;pZxid = 0x1300000230

cversion = 0

dataVersion = 0 &lt;/P&gt;&lt;P&gt;aclVersion = 0 &lt;/P&gt;&lt;P&gt;ephemeralOwner = 0x25b1439a48c001a &lt;/P&gt;&lt;P&gt;dataLength = 161 &lt;/P&gt;&lt;P&gt;numChildren = 0&lt;/P&gt;&lt;P&gt;can anyone help?&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 23:20:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181173#M143403</guid>
      <dc:creator>sumitsharma8692</dc:creator>
      <dc:date>2017-03-30T23:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: ISSUE with kafka while enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181174#M143404</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/16263/sumitsharma8692.html" nodeid="16263"&gt;@Sumit Sharma&lt;/A&gt;&lt;P&gt;-  Are you using custom producer or kafka-console-producer script ? Post the exact command used for producing messages to topic.&lt;/P&gt;&lt;P&gt;- Are you facing this issue for a specific topic or for all topics ? &lt;/P&gt;&lt;P&gt;- As which user you are running producer ? &lt;/P&gt;&lt;P&gt;- Please post the output of klist command as a user which is executing producer code/script.&lt;/P&gt;&lt;P&gt;- Output of describe command.&lt;/P&gt;&lt;P&gt;- What is the version of jdk you are running ?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 11:32:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181174#M143404</guid>
      <dc:creator>amankumbare</dc:creator>
      <dc:date>2017-03-31T11:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: ISSUE with kafka while enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181175#M143405</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12756/amankumbare.html" nodeid="12756"&gt;@amankumbare&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks for responding, Sumit and me work in the same team .&lt;/P&gt;&lt;P&gt;It is happening for all topics and jdk we using is 7 .&lt;/P&gt;&lt;P&gt;The main issue here is the content of the znode of the broker has no host and port information updated .&lt;/P&gt;&lt;P&gt;["PLAINTEXTSASL://&lt;A href="http://xxxx.domain.com/"&gt;xxxx.domain.com&lt;/A&gt;:9092"],&lt;STRONG&gt;"host":null&lt;/STRONG&gt;,"version":2,&lt;STRONG&gt;"port":-1&lt;/STRONG&gt;}&lt;/P&gt;&lt;P&gt;-Is it the expected behavior ?&lt;/P&gt;&lt;P&gt;-And it happens when listener value is  PLAINTEXTSASL://&lt;A href="http://xxxx.domain.com/"&gt;xxxx.domain.com&lt;/A&gt;:9092 and everything is fine when it is just PLAINTEXT .&lt;/P&gt;&lt;P&gt;Thanks in advance ,&lt;/P&gt;&lt;P&gt;Param.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 12:06:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181175#M143405</guid>
      <dc:creator>parameswarnc</dc:creator>
      <dc:date>2017-03-31T12:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: ISSUE with kafka while enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181176#M143406</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14624/parameswarnc.html" nodeid="14624"&gt;@Param NC&lt;/A&gt;&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/16263/sumitsharma8692.html" nodeid="16263"&gt;@Sumit Sharma&lt;/A&gt;  This is a know issue. What is the version of HDP you are using ?&lt;/P&gt;&lt;P&gt;After the cluster is kerberized, the default value of ‘host’ is set to ‘null’ and ‘port’ is set to ‘-1’ which becomes invalid to the legacy Kafka clients. For example:&lt;/P&gt;&lt;PRE&gt;[zk: localhost:2181(CONNECTED) 1] get /brokers/ids/1001 {"jmx_port":-1,"timestamp":"1479492220088","endpoints":["PLAINTEXTSASL://test.support.com:6667"],"host":null,"version":2,"port":-1}&lt;/PRE&gt;&lt;P&gt;The default ‘host’ and ‘port’ here in Zookeeper are used to maintain backward compatibility for older Kafka clients, but only PLAINTEXT protocol is supported as default. &lt;/P&gt;&lt;P&gt;If the broker does not listen on PLAINTEXT protocol, for example PLAINTEXTSASL after kerberizing,  an empty endpoint (that is, "host":null,"port”:-1) will be registered and older clients will break.&lt;/P&gt;&lt;P&gt;Could you please try to manually change the ‘host’ and ‘port’ to actual value. &lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;[zk: localhost:2181(CONNECTED) 2] set /brokers/ids/1001 {"jmx_port":-1,"timestamp":"1481503998915","endpoints":["PLAINTEXTSASL://test.support.com:6667"],"host":"test.support.com","version":3,"port":6667}&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2017 12:31:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181176#M143406</guid>
      <dc:creator>amankumbare</dc:creator>
      <dc:date>2017-03-31T12:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: ISSUE with kafka while enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181177#M143407</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14624/parameswarnc.html" nodeid="14624"&gt;@Param NC&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16263/sumitsharma8692.html" nodeid="16263"&gt;@Sumit Sharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The znode values are expected post enabling kerberos and that should not cause any issue. &lt;/P&gt;&lt;P&gt;What is the actual issue you are facing, can post the the error trace here ?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 19:14:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181177#M143407</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2017-03-31T19:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: ISSUE with kafka while enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181178#M143408</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12756/amankumbare.html" nodeid="12756"&gt;@amankumbare&lt;/A&gt;&lt;P&gt;thanks ! this worked for me.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 20:12:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181178#M143408</guid>
      <dc:creator>sumitsharma8692</dc:creator>
      <dc:date>2017-03-31T20:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: ISSUE with kafka while enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181179#M143409</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14624/parameswarnc.html"&gt;@Param NC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have tried above commands For me get is working but while  changing port and host, manually using the above command facing below error&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Authentication is not valid : /brokers/ids/1001&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:27:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/181179#M143409</guid>
      <dc:creator>satish_p</dc:creator>
      <dc:date>2019-07-11T14:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: ISSUE with kafka while enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/323198#M229047</link>
      <description>&lt;P&gt;try to switch to a kafka user : su kafka&lt;BR /&gt;and retry again&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 12:24:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ISSUE-with-kafka-while-enabling-kerberos/m-p/323198#M229047</guid>
      <dc:creator>interbooy</dc:creator>
      <dc:date>2021-08-26T12:24:22Z</dc:date>
    </item>
  </channel>
</rss>

