I am writing a kafka producer application in java. I want the producer to publish data to a cluster of 6 brokers. Is there a way to specify only the load balancing node but not all the brokers list?
For example, like in the benchmarking kafka commandssdg: bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test 50000000 100 -1 acks=-1 bootstrap.servers= esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=64000 it only specifies the bootstrap server node but not all the broker list like: Properties props = new Properties(); props.put("metadata.broker.list", "broker1:9092,broker2:9092"); Thanks for replying.