<?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 send message error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180676#M58561</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78520/sunilkumarthupakula.html" nodeid="78520"&gt;@sunil thupakula&lt;/A&gt; &lt;/P&gt;&lt;P&gt;More Logs :&lt;/P&gt;&lt;P&gt;Kafka Server Logs: &lt;/P&gt;&lt;P&gt;Retrying leaderEpoch request for partition hello-4 as the leader reported an error: CLUSTER_AUTHORIZATION_FAILED (kafka.server.ReplicaFetcherThread)
[2018-05-24 10:11:55,890] INFO [ReplicaFetcher replicaId=1004, leaderId=1003, fetcherId=0] Retrying leaderEpoch request for partition hello-4 as the leader reported an error: CLUSTER_AUTHORIZATION_FAILED (kafka.server.ReplicaFetcherThread)&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2018 19:58:45 GMT</pubDate>
    <dc:creator>sunilkumar_thup</dc:creator>
    <dc:date>2018-05-24T19:58:45Z</dc:date>
    <item>
      <title>kafka send message error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180668#M58553</link>
      <description>&lt;P&gt;After enable ranger kafka plugin, execute command "/usr/hdp/current/kafka-broker/bin/kafka-console-producer.sh --broker-list bigdata001:6667 --topic test5", but when I input content to send message, the result returns as follows:&lt;/P&gt;&lt;PRE&gt;[2017-03-30 17:06:45,507] WARN Error while fetching metadata with correlation id 0 : {test5=TOPIC_AUTHORIZATION_FAILED} (org.apache.kafka.clients.NetworkClient)
[2017-03-30 17:06:45,507] ERROR Error when sending message to topic test5 with key: null, value: 7 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TopicAuthorizationException: Not authorized to access topics: [test5]
[2017-03-30 17:11:45,563] WARN Error while fetching metadata with correlation id 1 : {test5=TOPIC_AUTHORIZATION_FAILED} (org.apache.kafka.clients.NetworkClient
&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Mar 2017 16:33:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180668#M58553</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2017-03-30T16:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: kafka send message error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180669#M58554</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14787/amazon20062007.html" nodeid="14787"&gt;@Zhao Chaofeng
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please login to Ranger UI &lt;A target="_blank" href="http://RANGER_HOST:6080/index.html#!/policymanager/resource"&gt;http://RANGER_HOST:6080/index.html#!/policymanager/resource&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check the policies defined for Kafka (specially for topics) that you are not restricting access.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Purely at Kafka level you can check the permissions using the following utility:&lt;/P&gt;&lt;PRE&gt;# bin/kafka-acls.sh --list --topic &amp;lt;TOPIC_NAME&amp;gt;
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.3/bk_secure-kafka-ambari/content/kafka-acl-examples.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.3/bk_secure-kafka-ambari/content/kafka-acl-examples.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14787/amazon20062007.html" nodeid="14787"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:01:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180669#M58554</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-30T17:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: kafka send message error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180670#M58555</link>
      <description>&lt;P&gt;Yes, I defined a policy in ranger as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14217-selection-049.png" style="width: 1468px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19274i1995AF2AE1509837/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14217-selection-049.png" alt="14217-selection-049.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 09:07:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180670#M58555</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2019-08-18T09:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: kafka send message error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180671#M58556</link>
      <description>&lt;PRE&gt;# bin/kafka-acls.sh --list --topic test5
&lt;/PRE&gt;&lt;P&gt;After executing the command, there is no acls for topic test5.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:17:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180671#M58556</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2017-03-30T17:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: kafka send message error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180672#M58557</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14787/amazon20062007.html" nodeid="14787"&gt;@Zhao Chaofeng&lt;/A&gt;&lt;P&gt;Please refer below links and see if it helps :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/17059/apache-ranger-and-kafka-1.html" target="_blank"&gt;https://community.hortonworks.com/articles/17059/apache-ranger-and-kafka-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/RANGER/Kafka+Plugin#KafkaPlugin-CanIauthorizeraccesstoKafkaoveranon-securechannelviaRanger" target="_blank"&gt;https://cwiki.apache.org/confluence/display/RANGER/Kafka+Plugin#KafkaPlugin-CanIauthorizeraccesstoKafkaoveranon-securechannelviaRanger&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 12:14:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180672#M58557</guid>
      <dc:creator>amankumbare</dc:creator>
      <dc:date>2017-03-31T12:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: kafka send message error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180673#M58558</link>
      <description>&lt;P&gt;OK, thank you for your reply.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 12:27:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180673#M58558</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2017-03-31T12:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: kafka send message error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180674#M58559</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78520/sunilkumarthupakula.html" nodeid="78520"&gt;@sunil thupakula&lt;/A&gt;I&lt;/P&gt;&lt;P&gt;i am also getting the same error when i try to publish/consume messages. &lt;/P&gt;&lt;P&gt;I have created a topic with one partition, using kafka user , though i have 3 brokers in my kafka cluster, i have also authorized using ranger policy . When ever i alter the topic partitions to more than 1 then i get below error. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ERROR Error when sending message to topic partition_change1 with key: null, value: 4 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TopicAuthorizationException: Not authorized to access topics: [partition_change1]&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;I am facing this issue for quit sometime, i need to fix this as i have some business impact. ASAP.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 02:10:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180674#M58559</guid>
      <dc:creator>sunilkumar_thup</dc:creator>
      <dc:date>2018-05-24T02:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: kafka send message error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180675#M58560</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78520/sunilkumarthupakula.html" nodeid="78520"&gt;@sunil thupakula&lt;/A&gt;&lt;/P&gt;&lt;P&gt;kafka server logs: &lt;/P&gt;&lt;P&gt;Retrying leaderEpoch request for partition hello-4 as the leader reported an error: CLUSTER_AUTHORIZATION_FAILED (kafka.server.ReplicaFetcherThread)
[2018-05-24 10:11:55,890] INFO [ReplicaFetcher replicaId=1004, leaderId=1003, fetcherId=0] Retrying leaderEpoch request for partition hello-4 as the leader reported an error: CLUSTER_AUTHORIZATION_FAILED (kafka.server.ReplicaFetcherThread)&lt;/P&gt;&lt;P&gt;Any idea, why i am not getting cluster authorization to kafka topics ?&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:58:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180675#M58560</guid>
      <dc:creator>sunilkumar_thup</dc:creator>
      <dc:date>2018-05-24T19:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: kafka send message error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180676#M58561</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78520/sunilkumarthupakula.html" nodeid="78520"&gt;@sunil thupakula&lt;/A&gt; &lt;/P&gt;&lt;P&gt;More Logs :&lt;/P&gt;&lt;P&gt;Kafka Server Logs: &lt;/P&gt;&lt;P&gt;Retrying leaderEpoch request for partition hello-4 as the leader reported an error: CLUSTER_AUTHORIZATION_FAILED (kafka.server.ReplicaFetcherThread)
[2018-05-24 10:11:55,890] INFO [ReplicaFetcher replicaId=1004, leaderId=1003, fetcherId=0] Retrying leaderEpoch request for partition hello-4 as the leader reported an error: CLUSTER_AUTHORIZATION_FAILED (kafka.server.ReplicaFetcherThread)&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:58:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/180676#M58561</guid>
      <dc:creator>sunilkumar_thup</dc:creator>
      <dc:date>2018-05-24T19:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: kafka send message error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/386508#M58562</link>
      <description>&lt;P&gt;Make Sure that HDFS Service checkbox is checked&amp;nbsp; in ClouderaManager&amp;gt;Kafka&amp;gt;Configuration&lt;BR /&gt;&lt;BR /&gt;For me after i checked HDFS Service it was resolved&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 12:00:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-send-message-error/m-p/386508#M58562</guid>
      <dc:creator>VenkataAvinash</dc:creator>
      <dc:date>2024-04-14T12:00:48Z</dc:date>
    </item>
  </channel>
</rss>

