How Do I Use the Kafka Console Scripts to Connect to a Streams Broker with Authentication Enabled?
Issue
When trying to use the kafka-console-consumer.sh, kafka-console-producer.sh or kafka-topics.sh scripts in the bin directory of my AMQ Streams installation with authentication enabled, the operation fails and I see strange log entries in the broker server.log, like:
Failed authentication with /192.168.100.101 (Unexpected Kafka request of type METADATA during SASL handshake.) (org.apache.kafka.common.network.Selector)
How do I connect to the cluster when authentication is enabled?
Environment
Red Hat AMQ Streams
Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.