The Big Data in Real World team expands beyond localhost:
You might encounter the below error message when your Kafka consumers or clients connect to Kafka broker for ingestion or consumption.
Connection to node -1 (/127.0.0.1:9092) could not be established. Broker may not be available.
Read on to see what the problem is and how you can fix it.