<?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 Sentry authorization: HadoopGroupMappingService: Unable to obtain groups for ANONYMOUS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/63127#M72790</link>
    <description>&lt;P&gt;Yes it worked after disabling Sentry in Kafka configuration in Cloudera Manager. Will need to understand how Sentry can work with Kafka without Kerberos. Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Dec 2017 13:11:02 GMT</pubDate>
    <dc:creator>ebeb</dc:creator>
    <dc:date>2017-12-28T13:11:02Z</dc:date>
    <item>
      <title>Kafka Sentry authorization: HadoopGroupMappingService: Unable to obtain groups for ANONYMOUS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/62986#M72788</link>
      <description>&lt;P&gt;Hi Kafka experts,&lt;/P&gt;&lt;P&gt;I have enabled KAFKA 2.2.x parcel (kafka version 0.10.2) in CDH 5.12. When I run a basic producer or consumer command such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@~]# /opt/cloudera/parcels/KAFKA-2.2.0-1.2.2.0.p0.68/lib/kafka/bin/kafka-console-producer.sh --broker-list xyz1.com:9092 xyz2.com:9092 --topic topic1&lt;BR /&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;BR /&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/KAFKA-2.2.0-1.2.2.0.p0.68/lib/kafka/libs/slf4j-log4j12-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/KAFKA-2.2.0-1.2.2.0.p0.68/lib/kafka/libs/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.&lt;BR /&gt;SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]&lt;BR /&gt;17/12/21 12:54:21 INFO producer.ProducerConfig: ProducerConfig values:&lt;BR /&gt;acks = 1&lt;BR /&gt;batch.size = 16384&lt;BR /&gt;block.on.buffer.full = false&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssl.truststore.location = null&lt;BR /&gt;ssl.truststore.password = null&lt;BR /&gt;ssl.truststore.type = JKS&lt;BR /&gt;timeout.ms = 30000&lt;BR /&gt;value.serializer = class org.apache.kafka.common.serialization.ByteArraySerializer&lt;/P&gt;&lt;P&gt;17/12/21 12:54:21 INFO utils.AppInfoParser: Kafka version : 0.10.2-kafka-2.2.0&lt;BR /&gt;17/12/21 12:54:21 INFO utils.AppInfoParser: Kafka commitId : unknown&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;hello hello&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;17/12/21 12:56:26 WARN clients.NetworkClient: Error while fetching metadata with correlation id 1 : {topic1=UNKNOWN_TOPIC_OR_PARTITION}&lt;/FONT&gt;&lt;BR /&gt;17/12/21 12:56:27 WARN clients.NetworkClient: Error while fetching metadata with correlation id 2 : {topic1=UNKNOWN_TOPIC_OR_PARTITION}&lt;BR /&gt;17/12/21 12:56:27 WARN clients.NetworkClient: Error while fetching metadata with correlation id 3 : {topic1=UNKNOWN_TOPIC_OR_PARTITION}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;This CDH cluster has Sentry enabled but no Kerberos and no SSL. I think there is a permission issue for the user as I get the below in the /var/log/kafka/kafka-broker-xyz.log&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2017-12-21 13:00:18,813 WARN org.apache.sentry.provider.common.HadoopGroupMappingService: Unable to obtain groups for ANONYMOUS&lt;BR /&gt;java.io.IOException: No groups found for user ANONYMOUS&lt;BR /&gt;at org.apache.hadoop.security.Groups.noGroupsForUser(Groups.java:199)&lt;BR /&gt;at org.apache.hadoop.security.Groups.getGroups(Groups.java:222)&lt;BR /&gt;at org.apache.sentry.provider.common.HadoopGroupMappingService.getGroups(HadoopGroupMappingService.java:60)&lt;BR /&gt;at org.apache.sentry.provider.common.ResourceAuthorizationProvider.getGroups(ResourceAuthorizationProvider.java:167)&lt;BR /&gt;at org.apache.sentry.provider.common.ResourceAuthorizationProvider.doHasAccess(ResourceAuthorizationProvider.java:97)&lt;BR /&gt;at org.apache.sentry.provider.common.ResourceAuthorizationProvider.hasAccess(ResourceAuthorizationProvider.java:91)&lt;BR /&gt;at org.apache.sentry.kafka.binding.KafkaAuthBinding.authorize(KafkaAuthBinding.java:212)&lt;BR /&gt;at org.apache.sentry.kafka.authorizer.SentryKafkaAuthorizer.authorize(SentryKafkaAuthorizer.java:63)&lt;BR /&gt;at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$authorize$1.apply(KafkaApis.scala:343)&lt;BR /&gt;at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$authorize$1.apply(KafkaApis.scala:343)&lt;BR /&gt;at scala.Option.forall(Option.scala:247)&lt;BR /&gt;at kafka.server.KafkaApis.kafka$server$KafkaApis$$authorize(KafkaApis.scala:343)&lt;BR /&gt;at kafka.server.KafkaApis$$anonfun$39.apply(KafkaApis.scala:838)&lt;BR /&gt;at kafka.server.KafkaApis$$anonfun$39.apply(KafkaApis.scala:838)&lt;BR /&gt;at scala.collection.TraversableLike$$anonfun$partition$1.apply(TraversableLike.scala:314)&lt;BR /&gt;at scala.collection.TraversableLike$$anonfun$partition$1.apply(TraversableLike.scala:314)&lt;BR /&gt;at scala.collection.immutable.Set$Set1.foreach(Set.scala:94)&lt;BR /&gt;at scala.collection.TraversableLike$class.partition(TraversableLike.scala:314)&lt;BR /&gt;at scala.collection.AbstractTraversable.partition(Traversable.scala:104)&lt;BR /&gt;at kafka.server.KafkaApis.handleTopicMetadataRequest(KafkaApis.scala:838)&lt;BR /&gt;at kafka.server.KafkaApis.handle(KafkaApis.scala:83)&lt;BR /&gt;at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:62)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:745)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;2017-12-21 13:00:19,067 WARN org.apache.sentry.provider.common.HadoopGroupMappingService: Unable to obtain groups for ANONYMOUS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the correct way to setup the Sentry authorization to give permission to the user on kafka? Any blog or instructions will be greatly appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:39:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/62986#M72788</guid>
      <dc:creator>ebeb</dc:creator>
      <dc:date>2022-09-16T12:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka Sentry authorization: HadoopGroupMappingService: Unable to obtain groups for ANONYMOUS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/63123#M72789</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/23837"&gt;@ebeb&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to disable &lt;SPAN&gt;Sentry Service in kafka configuration&lt;/SPAN&gt;&amp;nbsp;if you are not using it.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 11:19:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/63123#M72789</guid>
      <dc:creator>RajeshBodolla</dc:creator>
      <dc:date>2017-12-28T11:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka Sentry authorization: HadoopGroupMappingService: Unable to obtain groups for ANONYMOUS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/63127#M72790</link>
      <description>&lt;P&gt;Yes it worked after disabling Sentry in Kafka configuration in Cloudera Manager. Will need to understand how Sentry can work with Kafka without Kerberos. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 13:11:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/63127#M72790</guid>
      <dc:creator>ebeb</dc:creator>
      <dc:date>2017-12-28T13:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka Sentry authorization: HadoopGroupMappingService: Unable to obtain groups for ANONYMOUS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/63128#M72791</link>
      <description>It should work without kerberos as well. I haven't tried it but you can give it a try.</description>
      <pubDate>Thu, 28 Dec 2017 13:16:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/63128#M72791</guid>
      <dc:creator>RajeshBodolla</dc:creator>
      <dc:date>2017-12-28T13:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka Sentry authorization: HadoopGroupMappingService: Unable to obtain groups for ANONYMOUS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/65234#M72792</link>
      <description>&lt;P&gt;What is the meaning of having kafka-sentry, when you don't have kerberos enabled?&lt;/P&gt;&lt;P&gt;For the moment, Kerberos is the only authentication engine supported by Kafka. When you don't have Kerberos enabled, all connection are treated the same. As you can see from the log, it thinks that the username is ANONYMOUS, that's why it tries to find the group that this user belongs to.&lt;/P&gt;&lt;P&gt;Since, the local system is not aware of any user (either local or synced to an LDAP/AD) with the name "ANONYMOUS", there is no group retrieved, so it cannot be matched to any kafka-sentry rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is normal that it will fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, you can create a user account "ANONYMOUS", assign it to a group and define a kafka-sentry rule with this group. But what is the meaning to that? All connections will have the same permissions.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 14:26:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Sentry-authorization-HadoopGroupMappingService-Unable/m-p/65234#M72792</guid>
      <dc:creator>GeKas</dc:creator>
      <dc:date>2018-03-09T14:26:53Z</dc:date>
    </item>
  </channel>
</rss>

