Error while connecting to Kafka Consumer in DEVTEST: Trapped Message: org.apache.kafka.common.errors.GroupAuthorizationException: Not authorized to access group: anonymous.1037b9fa-4aa9-4427-8282-db8851f3e828
search cancel

Error while connecting to Kafka Consumer in DEVTEST: Trapped Message: org.apache.kafka.common.errors.GroupAuthorizationException: Not authorized to access group: anonymous.1037b9fa-4aa9-4427-8282-db8851f3e828

book

Article ID: 273493

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

 I can produce & consume message on the same topic now. The exception below is mainly with the Default settings on the Kafka topic. If we select Specific or All then it just works fine. I m not sure why with Default settings it's throwing "No authorized group error". Can you please check and provide us a valid reason?

 

| Exception:
============================================================================
| Message:   Not authorized to access group: anonymous.1037b9fa-4aa9-4427-8282-db8851f3e828
----------------------------------------------------------------------------
| Trapped Exception: Not authorized to access group: anonymous.1037b9fa-4aa9-4427-8282-db8851f3e828
| Trapped Message:  org.apache.kafka.common.errors.GroupAuthorizationException: Not authorized to access group: anonymous.1037b9fa-4aa9-4427-8282-db8851f3e828
----------------------------------------------------------------------------
STACK TRACE
org.apache.kafka.common.errors.GroupAuthorizationException: Not authorized to access group: anonymous.1037b9fa-4aa9-4427-8282-db8851f3e828

 

 

Environment

Release : 10.7.2

Resolution

 While selecting Partition Assignment in Consumer configuration : 

1) If you choose partition to default then Devtest generates a random anonymous GroupId for the consumer. 

2). If you select specific then Devtest doesn't generate any GroupId it will be blank by default.

3) If you select All then Devtest doesn't generate any GroupID it will be blank by default.

 

If your kafka environment has a valid GroupID,  please check with your admin.   If the Group doesn't exist , you will get the above error.