conduktor.io ↗

Kafka Exception UnsupportedSaslMechanismException

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

This exception indicates that the SASL mechanism requested by the client is not enabled on the broker.

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.UnsupportedSaslMechanismException: The broker does not support the requested SASL mechanism.

Diagnostic Commands

# Verify broker connectivity and API versions kafka-broker-api-versions.sh --bootstrap-server localhost:9092 --command-config client-sasl.properties 2>&1 | head -5 # Check SASL config in broker properties grep 'sasl.enabled.mechanisms\|sasl.mechanism' /opt/kafka/config/server.properties

Related

Protocol error: UNSUPPORTED_SASL_MECHANISM (code 33)

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

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