in kafka server.properties to allow the cluster to use kerberos and clients to use PLAIN authentication.
But this does not work.
The console-producer logs
INFO Successfully logged in. (org.apache.kafka.common.security.authenticator.AbstractLogin)
and after a while:
ERROR Error when sending message to topic testtopic2 with key: null, value: 28 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
INFO Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms. (org.apache.kafka.clients.producer.KafkaProducer)
In the meantime it continuously tries to connect to the kafka hosts.