[ERROR] Unable connect to node with id 0: code example
Example: Broker may not be available. (org.apache.kafka.clients.NetworkClient)
For standalone servers, change line from server.properties
listeners=PLAINTEXT://myhostname:9092
to
listeners=PLAINTEXT://localhost:9092