<?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: Kerberized HDP 2.4 - can i use users kafka1 for publish/subscribe to Kafka topic in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123896#M86640</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt;&lt;P&gt;In the original cluster are you using Ranger for authorization or ACLs?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2016 11:53:31 GMT</pubDate>
    <dc:creator>dbains</dc:creator>
    <dc:date>2016-11-29T11:53:31Z</dc:date>
    <item>
      <title>Kerberized HDP 2.4 - can i use users kafka1 for publish/subscribe to Kafka topic</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123889#M86633</link>
      <description>&lt;P&gt;Hi Kafka, HDP experts,&lt;/P&gt;&lt;P&gt;I've a Kerberized HDP 2.4 sandbox..&lt;/P&gt;&lt;P&gt;i'm able to do kinit for the principal user (kafka), and publish &amp;amp; subscribe to topic.&lt;/P&gt;&lt;P&gt;How do i do the same with additional users (e.g. kafka1) ?&lt;/P&gt;&lt;P&gt;I've a Unix user - kafka1 setup.. How do i obtain a kinit for kafka1 user, so i can publish/subscribe messages to Kafka topic ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 02:58:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123889#M86633</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2016-11-28T02:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberized HDP 2.4 - can i use users kafka1 for publish/subscribe to Kafka topic</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123890#M86634</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/40/apathan.html" nodeid="40"&gt;@Ayub Khan&lt;/A&gt;, &lt;A rel="user" href="https://community.cloudera.com/users/98/emaxwell.html" nodeid="98"&gt;@emaxwell&lt;/A&gt; - any inputs on this ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 03:06:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123890#M86634</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2016-11-28T03:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberized HDP 2.4 - can i use users kafka1 for publish/subscribe to Kafka topic</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123891#M86635</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/14047/karanalang.html"&gt;@Karan Alang&lt;/A&gt; Seems like 'kafka1' is a unix user and your mit kdc does not know about it. So you have register user with kdc and create keytab for the user. Please follow the below steps.&lt;/P&gt;&lt;PRE&gt;1. Run kadmin.local

2. In the kadmin prompt, run this command 'addprinc -randkey kafka1'

3. Then this command: 'xst -k /tmp/keytabs/kafka1.headless.keytab kafka1'
&lt;/PRE&gt;&lt;P&gt;This should actually create the keytab and register user kafka1 in kdc.&lt;/P&gt;&lt;P&gt;Now you can do the kinit with the kafka1 keytab(from step2) and perform the operations.&lt;/P&gt;&lt;P&gt;If you have ranger configured in your cluster for kafka, you need to add appropriate policies in ranger.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 10:15:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123891#M86635</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2016-11-28T10:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberized HDP 2.4 - can i use users kafka1 for publish/subscribe to Kafka topic</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123892#M86636</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt; Is this working for you? Are you able to publish to topic?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 16:27:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123892#M86636</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2016-11-28T16:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberized HDP 2.4 - can i use users kafka1 for publish/subscribe to Kafka topic</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123893#M86637</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/40/apathan.html" nodeid="40"&gt;@Ayub Khan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;thanks, i was able to add the user kafka1, kafka2 - to KDC and get Kerberos token for them.&lt;/P&gt;&lt;P&gt;However, now i'm facing issue wherein i'm not able to publish to Kafka topic, even when i'm logged in as root (where i  believe it uses service user - kafka)&lt;/P&gt;&lt;P&gt;When i publish to the topic, i'm getting this error -&amp;gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------&lt;/P&gt;&lt;P&gt;[root@sandbox libs]# $KAFKA_HOME/bin/kafka-console-producer.sh --broker-list &lt;A href="http://sandbox.hortonworks.com"&gt;sandbox.hortonworks.com&lt;/A&gt;:6667
 --topic kafka1_topic2 --security-protocol SASL_PLAINTEXT hello 
[2016-11-28 06:44:03,499] WARN Error while fetching metadata 
[{TopicMetadata for topic kafka1_topic2 -&amp;gt; No partition metadata for 
topic kafka1_topic2 due to kafka.common.LeaderNotAvailableException}] 
for topic [kafka1_topic2]: class 
kafka.common.LeaderNotAvailableException 
(kafka.producer.BrokerPartitionInfo)&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Details are in this link -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/68641/kerberized-hdp-24-kafka-giving-error-kafkacommonle.html#answer-68645" target="_blank"&gt;https://community.hortonworks.com/questions/68641/kerberized-hdp-24-kafka-giving-error-kafkacommonle.html#answer-68645&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Couple of days back, i'd got this issue &amp;amp; added the following constant to fix the issue -&lt;/P&gt;&lt;P&gt;advertised.host.name=sandbox.hortonworks.com&lt;/P&gt;&lt;P&gt;host.name=sandbox.hortonworks.com&lt;/P&gt;&lt;P&gt;But the issue has re-occurred (above fix still in place), and not sure how to fix this.&lt;/P&gt;&lt;P&gt;Any ideas on this ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 04:03:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123893#M86637</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2016-11-29T04:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberized HDP 2.4 - can i use users kafka1 for publish/subscribe to Kafka topic</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123894#M86638</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/14047/karanalang.html"&gt;Karan Alang&lt;/A&gt; Could you please try kiniting and running the following command:&lt;/P&gt;&lt;PRE&gt;export KAFKA_CLIENT_KERBEROS_PARAMS="-Djava.security.auth.login.config=/usr/hdp/current/kafka-broker/config/kafka_client_jaas.conf" 
&lt;/PRE&gt;&lt;P&gt;After that run the producer. Also I believe you have enabled Ranger-Kafka plugin. Have you enabled SSL too?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 06:52:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123894#M86638</guid>
      <dc:creator>dbains</dc:creator>
      <dc:date>2016-11-29T06:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberized HDP 2.4 - can i use users kafka1 for publish/subscribe to Kafka topic</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123895#M86639</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11149/dbains.html" nodeid="11149"&gt;@dbains&lt;/A&gt;, &lt;A rel="user" href="https://community.cloudera.com/users/40/apathan.html" nodeid="40"&gt;@Ayub Khan&lt;/A&gt;- i seem to have fixed this issue for now ..&lt;/P&gt;&lt;P&gt;I've created another cluster, and repeated the steps for kerberization .. and am able to publish/consume messages to kafka topics. I'll update if i'm able to fix the above error in the original cluster.&lt;/P&gt;&lt;P&gt;But first, i need to be able to create/limit access to users kafka1, kafka2 to specific kafka topics.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 08:54:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123895#M86639</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2016-11-29T08:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberized HDP 2.4 - can i use users kafka1 for publish/subscribe to Kafka topic</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123896#M86640</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt;&lt;P&gt;In the original cluster are you using Ranger for authorization or ACLs?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 11:53:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123896#M86640</guid>
      <dc:creator>dbains</dc:creator>
      <dc:date>2016-11-29T11:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberized HDP 2.4 - can i use users kafka1 for publish/subscribe to Kafka topic</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123897#M86641</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11149/dbains.html" nodeid="11149"&gt;@dbains&lt;/A&gt;, in the original cluster, i'm using Ranger for authorization.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 13:39:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberized-HDP-2-4-can-i-use-users-kafka1-for-publish/m-p/123897#M86641</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2016-11-29T13:39:14Z</dc:date>
    </item>
  </channel>
</rss>

