I am trying to check the kafka consumer by consuming the data from a topic on a remote Kafka cluster. I am getting the following error when I use the kafka-console-consume
Are you sure the remote kafka is running. I would suggest running nmap -p PORT HOST
in order to verify the port is open (unless it is configured differently the port should be 9092). If that is ok, then you can use kafkacat which makes things easier. Create a consumer running kafkacat -b HOST:PORT -t YOUR_TOPIC -C -o beginning
or create a producer running kafkacat -b HOST:PORT
-t YOUR_TOPIC -P