Got it

Kafka Consuption Failure Using Port 21005

82 0 0 0 0

Hello, everyone! 

I will share with you how to deal with the problem of consuming failure using port 21005 when using Kafka.

Context and Symptom

Port 21007 could be used for consumption normally. A user had the kafkaadmin permission, and a topic was assigned with the ACL permission. When the user used port 21005 to consume the topic, a message was displayed, indicating that the consumer group did not have the permission.

Cause Analysis

  1. The topic was assigned with the ACL permission. As a result, port 21005 could not be used for consumption.

  2. The value of allow.everyone.if.no.acl.found was false.

  3. The /kafka-acl/Group directory contained ACL authorization.

Solution

  1. Manually remove the ACL permission of the topic.

  2. Set allow.everyone.if.no.acl.found to true.

  3. Delete the ACL authorization in the /kafka-acl/Group directory of ZooKeeper.

    addauth krbgroup

    rmr /kafka/kafka-acl/Group/*

Create an acl_changes_* file in the /kafka-acl-changes directory of ZooKeeper or restart Kafka (do not perform rolling restart).


We warmly welcome you to enjoy our community!

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.