How to connect to Kafka with no bootstrap servers?

Viewed 28

I have kafka running with broker on a topic that needs credentials. All the examples I see online require bootstrap servers in order to connect to kafka and none show how to use a broker. I'm looking for settings to create a kafka reader to read whatever's written to topic.

1 Answers

The bootstrap server property is a list of one-to-many broker addresses. It is a required property, and you cannot create a Kafka client without bootstrap servers (i.e. a Kafka cluster).

Confluent maintains lots of code examples for various clients - https://developer.confluent.io/quickstart/kafka-local/

Related