Skip to main content
Trojan
Bronze ⭐️⭐️⭐️
May 25, 2023
Question

Error with Kafka consumer, while trying to connect with brokers using kerberos authentication

While trying to connect to a Kafka feed suddenly the connection drops out and the socket gets disconnected.

Error :

Caused by: org.apache.kafka.common.errors.SaslAuthenticationException: Failed to configure SaslClientAuthenticator
Caused by: org.apache.kafka.common.errors.SaslAuthenticationException: Failed to create SaslClient with mechanism GSSAPI
[WARN ] 2023-05-20 11:52:25 [main] NetworkClient - [Consumer clientId=consumer-R_Consumer-1, groupId=R_Consumer] Bootstrap broker 10.49.148.50:9093 (id: -4 rack: null) disconnected
[WARN ] 2023-05-20 11:52:25 [main] NetworkClient - [Consumer clientId=consumer-R_Consumer-1, groupId=R_Consumer] Error connecting to node 10.49.148.51:9093 (id: -3 rack: null)
java.io.IOException: Channel could not be created for socket java.nio.channels.SocketChannel[closed]

1 reply

DianaTorres
Community Manager
Community Manager
May 25, 2023

@Trojan Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our Kafka experts @rki_ and @ChethanYM  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