java-kafka-example icon indicating copy to clipboard operation
java-kafka-example copied to clipboard

Unable to connect to broker

Open pizza-hut opened this issue 8 years ago • 1 comments

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?

pizza-hut avatar Jan 16 '18 06:01 pizza-hut

Please email [email protected] with your hostname/username

carlhoerberg avatar Jan 16 '18 10:01 carlhoerberg