I am attempting to write a Java client for a third party\'s Kafka and ZooKeeper servers. I am able to list and describe topics, but when I attempt to read any, a Close
Here is my way to solve this problem:
bin/kafka-server-stop.sh to stop running kafka server.config/server.properties by adding a line:
listeners=PLAINTEXT://{ip.of.your.kafka.server}:9092Since without the lisener setting, kafka will use java.net.InetAddress.getCanonicalHostName() to get the address which the socket server listens on.