<?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 warning &amp;quot;no such user&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/327890#M230183</link>
    <description>&lt;P&gt;Yes, there has to be a corresponding user in Ranger to authorise, it can not be just a certificate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use Kafka SSL Authentication by setting it up for 2 way&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/kafka-securing/topics/kafka-secure-auth-tls-broker.html" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/kafka-securing/topics/kafka-secure-auth-tls-broker.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and if you want Authorisation(via Ranger) add the user&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/runtime/7.2.8/security-ranger-authorization/topics/security-ranger-users-groups-permissions.html" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.8/security-ranger-authorization/topics/security-ranger-users-groups-permissions.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same is also discussed here -&amp;nbsp;&lt;A href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-371%3A+Add+a+configuration+to+build+custom+SSL+principal+name" target="_blank"&gt;https://cwiki.apache.org/confluence/display/KAFKA/KIP-371%3A+Add+a+configuration+to+build+custom+SSL+principal+name&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 14:15:54 GMT</pubDate>
    <dc:creator>Nandinin</dc:creator>
    <dc:date>2021-10-18T14:15:54Z</dc:date>
    <item>
      <title>kafka warning "no such user"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/326209#M229819</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;we observe lot of annoying messages in kafka logs like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2021-09-01 17:09:47,435 WARN org.apache.hadoop.security.ShellBasedUnixGroupsMapping: unable to return groups for user OU=Dept,O=Company,C=DE,ST=Germany,CN=some_user&lt;BR /&gt;PartialGroupNameException The user name 'OU=Dept,O=Company,C=DE,ST=Germany,CN=some_user' is not found. id: OU=Dept,O=Company,C=DE,ST=Germany,CN=some_user: no such user&lt;BR /&gt;id: OU=Dept,O=Company,C=DE,ST=Germany,CN=some_user: no such user&lt;BR /&gt;&lt;BR /&gt;at org.apache.hadoop.security.ShellBasedUnixGroupsMapping.resolvePartialGroupNames(ShellBasedUnixGroupsMapping.java:291)&lt;BR /&gt;at org.apache.hadoop.security.ShellBasedUnixGroupsMapping.getUnixGroups(ShellBasedUnixGroupsMapping.java:215)&lt;BR /&gt;at org.apache.hadoop.security.ShellBasedUnixGroupsMapping.getGroupsSet(ShellBasedUnixGroupsMapping.java:123)&lt;BR /&gt;at org.apache.hadoop.security.Groups$GroupCacheLoader.fetchGroupSet(Groups.java:413)&lt;BR /&gt;at org.apache.hadoop.security.Groups$GroupCacheLoader.load(Groups.java:351)&lt;BR /&gt;at org.apache.hadoop.security.Groups$GroupCacheLoader.load(Groups.java:300)&lt;BR /&gt;at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529)&lt;BR /&gt;at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278)&lt;BR /&gt;at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2155)&lt;BR /&gt;at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2045)&lt;BR /&gt;at com.google.common.cache.LocalCache.get(LocalCache.java:3953)&lt;BR /&gt;at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3976)&lt;BR /&gt;at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4960)&lt;BR /&gt;at org.apache.hadoop.security.Groups.getGroupInternal(Groups.java:258)&lt;BR /&gt;at org.apache.hadoop.security.Groups.getGroupsSet(Groups.java:230)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.getGroupsSet(UserGroupInformation.java:1760)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.getGroupNames(UserGroupInformation.java:1726)&lt;BR /&gt;at org.apache.ranger.audit.provider.MiscUtil.getGroupsForRequestUser(MiscUtil.java:587)&lt;BR /&gt;at org.apache.ranger.authorization.kafka.authorizer.RangerKafkaAuthorizer.authorize(RangerKafkaAuthorizer.java:155)&lt;BR /&gt;at org.apache.ranger.authorization.kafka.authorizer.RangerKafkaAuthorizer.authorize(RangerKafkaAuthorizer.java:135)&lt;BR /&gt;at kafka.security.authorizer.AuthorizerWrapper$$anonfun$authorize$1.apply(AuthorizerWrapper.scala:52)&lt;BR /&gt;at kafka.security.authorizer.AuthorizerWrapper$$anonfun$authorize$1.apply(AuthorizerWrapper.scala:50)&lt;BR /&gt;at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)&lt;BR /&gt;at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)&lt;BR /&gt;at scala.collection.Iterator$class.foreach(Iterator.scala:891)&lt;BR /&gt;at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)&lt;BR /&gt;at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)&lt;BR /&gt;at scala.collection.AbstractIterable.foreach(Iterable.scala:54)&lt;BR /&gt;at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)&lt;BR /&gt;at scala.collection.AbstractTraversable.map(Traversable.scala:104)&lt;BR /&gt;at kafka.security.authorizer.AuthorizerWrapper.authorize(AuthorizerWrapper.scala:50)&lt;BR /&gt;at kafka.server.KafkaApis.filterAuthorized(KafkaApis.scala:2775)&lt;BR /&gt;at kafka.server.KafkaApis.handleFetchRequest(KafkaApis.scala:639)&lt;BR /&gt;at kafka.server.KafkaApis.handle(KafkaApis.scala:128)&lt;BR /&gt;at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:75)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;OU=Dept,O=Company,C=DE,ST=Germany,CN=some_user (values changed) is a self-signed certificate used as a client certificate for TLS based kafka connection.&lt;BR /&gt;The certificate exists, the name matches, and it was created accordingly in Ranger. The connection works actually.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We still don't undertstand where these warnings come from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cloudera Enterprise 7.2.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Jaro&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 09:11:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/326209#M229819</guid>
      <dc:creator>Jarinek</dc:creator>
      <dc:date>2021-10-04T09:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: kafka warning "no such user"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/326499#M229889</link>
      <description>&lt;P&gt;I believe the user "some_user" exists but not the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'OU=Dept,O=Company,C=DE,ST=Germany,CN=some_user'&lt;/PRE&gt;&lt;P&gt;You should configure&amp;nbsp;&lt;A href="https://docs.cloudera.com/runtime/7.2.10/kafka-securing/topics/kafka-secure-principal-name-mapping.html" target="_self"&gt;ssl.principal.mapping.rules&lt;/A&gt;&amp;nbsp;to skip these warnings.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 16:29:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/326499#M229889</guid>
      <dc:creator>Nandinin</dc:creator>
      <dc:date>2021-10-05T16:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: kafka warning "no such user"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/326500#M229890</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;This sounds promissing.&lt;BR /&gt;Actually, I went accross principal mapping rules recently, but was quite unclear about the implications.&lt;/P&gt;&lt;P&gt;The fact is, the "some_user" is no posix, or LDAP user or what so ever. It exists only as certificate.&lt;BR /&gt;Also the user identifier in Ranger is like "OU=Dempt,O=Company,...". this is, how colleagues of mine have set up the policies.&lt;/P&gt;&lt;P&gt;Does your assumption mean, that every single client certificate should be backed by a posix user?&lt;BR /&gt;And what, if the user is an external party accessing the broker remotelly?&lt;BR /&gt;Best regards&lt;BR /&gt;Jaro&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 17:07:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/326500#M229890</guid>
      <dc:creator>Jarinek</dc:creator>
      <dc:date>2021-10-05T17:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: kafka warning "no such user"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/327890#M230183</link>
      <description>&lt;P&gt;Yes, there has to be a corresponding user in Ranger to authorise, it can not be just a certificate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use Kafka SSL Authentication by setting it up for 2 way&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/kafka-securing/topics/kafka-secure-auth-tls-broker.html" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/kafka-securing/topics/kafka-secure-auth-tls-broker.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and if you want Authorisation(via Ranger) add the user&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/runtime/7.2.8/security-ranger-authorization/topics/security-ranger-users-groups-permissions.html" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.8/security-ranger-authorization/topics/security-ranger-users-groups-permissions.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same is also discussed here -&amp;nbsp;&lt;A href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-371%3A+Add+a+configuration+to+build+custom+SSL+principal+name" target="_blank"&gt;https://cwiki.apache.org/confluence/display/KAFKA/KIP-371%3A+Add+a+configuration+to+build+custom+SSL+principal+name&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 14:15:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/327890#M230183</guid>
      <dc:creator>Nandinin</dc:creator>
      <dc:date>2021-10-18T14:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: kafka warning "no such user"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/328526#M230275</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80158"&gt;@Jarinek&lt;/a&gt;,&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 17:44:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-warning-quot-no-such-user-quot/m-p/328526#M230275</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-10-21T17:44:41Z</dc:date>
    </item>
  </channel>
</rss>

