java-kafka-example
java-kafka-example copied to clipboard
Unable to connect to broker
Hello, I created a Developer Duck kafka instance in CloudKafka and also a topic. I get the following:
"Consumer clientId=consumer-1, groupId=] Connection to node -1 could not be established. Broker may not be available."
I followed your properties and security properties are the same: props.put("security.protocol", "SASL_SSL"); props.put("sasl.mechanism", "SCRAM-SHA-256"); props.put("sasl.jaas.config", jaasCfg);
(of course, pointing to my own hostname and using my own credentials in jaasCfg)
Is there something I miss out?
Please email [email protected] with your hostname/username