<?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: Getting TOPIC_AUTHORIZATION_FAILED error on kafka producer command in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238771#M200582</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot. It worked.&lt;/P&gt;&lt;P&gt;When i created topics using kafka-topics.sh, it throwed LEADER_NOT_AVAILABLE on giving producer command.&lt;/P&gt;&lt;P&gt;So i tried with auto-created topics and it worked without any error.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2019 20:12:22 GMT</pubDate>
    <dc:creator>gshilpa3311</dc:creator>
    <dc:date>2019-04-23T20:12:22Z</dc:date>
    <item>
      <title>Getting TOPIC_AUTHORIZATION_FAILED error on kafka producer command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238765#M200576</link>
      <description>&lt;P&gt;Installed kafka broker in a node using ambari blueprint with hdp 2.6.5 with ranger-kafka plugin enabled. Created topics using kafka-topics.sh command. Getting TOPIC_AUTHORIZATION_FAILED warning and unable to produce messages. By going through this document (&lt;A href="https://cwiki.apache.org/confluence/display/RANGER/Kafka+Plugin#KafkaPlugin-Authorizingtopiccreation"&gt;https://cwiki.apache.org/confluence/display/RANGER/Kafka+Plugin#KafkaPlugin-Authorizingtopiccreation&lt;/A&gt; ), got to know that ranger-kafka plugin authorization works only for autocreated topics. Tried the same producer command by auto-created topics but still getting the same error. Could anyone please help me to resolve this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 11:44:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238765#M200576</guid>
      <dc:creator>gshilpa3311</dc:creator>
      <dc:date>2019-04-19T11:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting TOPIC_AUTHORIZATION_FAILED error on kafka producer command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238766#M200577</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer" href="http://@Shilpa%20Gokul" target="_blank"&gt;&lt;EM&gt;@Shilpa Gokul&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;There is information that you should have provided to help members help you resolve your problem.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Is you cluster kerberized?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;What is the command you are executing? Can you share your Ranger/ kafka policy configuration?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2019 16:44:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238766#M200577</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-04-21T16:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting TOPIC_AUTHORIZATION_FAILED error on kafka producer command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238767#M200578</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271" target="_blank"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Its not a kerberized cluster. Also could you please tell me if there is any way to enable and use ranger with kafka in a non-kerberized cluster.&lt;/P&gt;&lt;P&gt;Screenshots of ranger policy:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="108084-ranger-policy-screenshot-1.png" style="width: 983px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14036i33916385A4C11A46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="108084-ranger-policy-screenshot-1.png" alt="108084-ranger-policy-screenshot-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="108045-ranger-policy-screenshot-2.png" style="width: 1307px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14037iA5BD96B66522C3CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="108045-ranger-policy-screenshot-2.png" alt="108045-ranger-policy-screenshot-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:51:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238767#M200578</guid>
      <dc:creator>gshilpa3311</dc:creator>
      <dc:date>2019-08-17T22:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting TOPIC_AUTHORIZATION_FAILED error on kafka producer command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238768#M200579</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://shilpa%20gokul/" target="_blank"&gt;&lt;EM&gt;@Shilpa Gokul&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Is the plugin enabled for kafka?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 22:55:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238768#M200579</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-04-22T22:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting TOPIC_AUTHORIZATION_FAILED error on kafka producer command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238769#M200580</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://shilpa%20gokul/" target="_blank"&gt;&lt;EM&gt;@Shilpa Gokul&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please have a look at this HCC document by Neeraj Sabharwal how to &lt;A rel="noopener noreferrer noopener noreferrer" href="https://community.hortonworks.com/articles/17059/apache-ranger-and-kafka-1.html" target="_blank"&gt;setup kafka/ranger without Kerberos&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This should still be valid with a few tweaks &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 11:12:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238769#M200580</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-04-23T11:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting TOPIC_AUTHORIZATION_FAILED error on kafka producer command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238770#M200581</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes i have enabled ranger-kafka plugin. Have tried with this document also (&lt;A href="https://community.hortonworks.com/articles/17059/apache-ranger-and-kafka-1.html"&gt;https://community.hortonworks.com/articles/17059/apache-ranger-and-kafka-1.html&lt;/A&gt; ). Created 3 policies for broker, producer and consumer as mentioned in that document, but still getting below error message on running the following producer command(&lt;STRONG&gt;./bin/kafka-console-producer.sh --broker-list hadoop-kafka0:6667 --topic test_2&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;hadoop-kafka0 is the hostname of my broker. Tried by giving ip instead of hostname. That also thrown the same error.&lt;/P&gt;&lt;P&gt;"[2019-04-23 10:50:26,907] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 15 : {test_2=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)"&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 17:58:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238770#M200581</guid>
      <dc:creator>gshilpa3311</dc:creator>
      <dc:date>2019-04-23T17:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting TOPIC_AUTHORIZATION_FAILED error on kafka producer command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238771#M200582</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot. It worked.&lt;/P&gt;&lt;P&gt;When i created topics using kafka-topics.sh, it throwed LEADER_NOT_AVAILABLE on giving producer command.&lt;/P&gt;&lt;P&gt;So i tried with auto-created topics and it worked without any error.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 20:12:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238771#M200582</guid>
      <dc:creator>gshilpa3311</dc:creator>
      <dc:date>2019-04-23T20:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting TOPIC_AUTHORIZATION_FAILED error on kafka producer command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238772#M200583</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://shilpa%20gokul/" target="_blank"&gt;&lt;EM&gt;@Shilpa Gokul&lt;/EM&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you found this answer addressed your question, please take a moment to log in and click the "&lt;STRONG&gt;Accept&lt;/STRONG&gt;" link on the answer.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;That would be a great help to Community users to find the solution quickly for these kinds of errors.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 21:58:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238772#M200583</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-04-23T21:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting TOPIC_AUTHORIZATION_FAILED error on kafka producer command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238773#M200584</link>
      <description>&lt;P&gt;Very intresting question!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 03:31:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-TOPIC-AUTHORIZATION-FAILED-error-on-kafka-producer/m-p/238773#M200584</guid>
      <dc:creator>jamessweney</dc:creator>
      <dc:date>2019-04-24T03:31:21Z</dc:date>
    </item>
  </channel>
</rss>

