conduktor.io ↗

Kafka Exception TopicAuthorizationException

org.apache.kafka.common.errors.TopicAuthorizationException
Non-retriable Security

TopicAuthorizationException is a Kafka exception (org.apache.kafka.common.errors.TopicAuthorizationException).

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.TopicAuthorizationException: Topic authorization failed.

Diagnostic Commands

# List ACLs for the resource kafka-acls.sh --bootstrap-server localhost:9092 --list --topic <topic-name> # Look for authorization failures in logs grep 'Authorization failed\|TOPIC_AUTHORIZATION_FAILED\|principal' /var/log/kafka/server.log | grep <topic-name> | tail -20

Related

Protocol error: TOPIC_AUTHORIZATION_FAILED (code 29)

Related Security exceptions: AuthenticationException · AuthorizationException · AuthorizerNotReadyException · ClusterAuthorizationException · GroupAuthorizationException · IllegalSaslStateException · SaslAuthenticationException · SslAuthenticationException

Hitting TopicAuthorizationException in production? Conduktor Console gives you real-time visibility into clients, consumer groups, and broker health. Browse every Kafka exception or protocol error code.