Skip to main content
amru
Silver ⭐️⭐️
Oct 22, 2024 2:28 PM UTC
Solved

Kafka Broker not starting after enabling ranger

Hi Team,

 

After enabling ranger in Kafka, I am not able to bring up the Kafka broker instance.

 

The error is:

[kafka-raft-io-thread]: Encountered fatal fault: Unexpected error in raft IO thread
org.apache.kafka.common.errors.ClusterAuthorizationException: Received cluster authorization error in response InboundResponse(correlationId=0, data=FetchResponseData(throttleTimeMs=0, errorCode=31, sessionId=0, responses=[]), sourceId=155)

 

Please help resolve this. Thanks in advance.

Babasaheb
BabasahebAnswer
Gold ⭐️
Oct 22, 2024 6:57 PM UTC

Hello @amru,

We need the complete log file or a relevant log snippet to understand why Kafka is failing after enabling Ranger.

But you should consider checking,

  • Check Ranger’s audit logs to see if any access requests were denied, which could help you pinpoint the issue and the specific resource where permissions are lacking.
  • You should check the Ranger logs for any errors or issues.
  • Ensure that Kafka policies are synced successfully.
  • If you are using AD/LDAP, ensure that all users are properly synced with Ranger.

Thank you

3 replies

amru
amruAuthor
Silver ⭐️⭐️
Oct 22, 2024 2:29 PM UTC

Kafka is depolyed in cloudera

Translate
DianaTorres
Community Manager
Community Manager
Oct 22, 2024 5:54 PM UTC

@amru Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our Kafka experts @Babasaheb @rki_  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.

Translate
Regards, Diana Torres, Senior Community Moderator
Babasaheb
Gold ⭐️
BabasahebAnswer
Gold ⭐️
Oct 22, 2024 6:57 PM UTC

Hello @amru,

We need the complete log file or a relevant log snippet to understand why Kafka is failing after enabling Ranger.

But you should consider checking,

  • Check Ranger’s audit logs to see if any access requests were denied, which could help you pinpoint the issue and the specific resource where permissions are lacking.
  • You should check the Ranger logs for any errors or issues.
  • Ensure that Kafka policies are synced successfully.
  • If you are using AD/LDAP, ensure that all users are properly synced with Ranger.

Thank you

Translate