In this post we will discuss How To Fix - Kafka Cluster Configuration Issue in Kafka. Sometimes Kafka clustering gives setup issue.Lets say you have a Kafka Cluster with five brokers and one zookeeper. Suppose the replication factor and partition is two. And you see messages like below in the terminal -
The node B fails and subsequently the consumer pops below error messages -
Turned off nodeA and nodeB
Turned on nodeA
Turned off nodeA
Turned on nodeB
Connection to node A (/nodeA\_ip\_address) could not be established. Broker may not be available
config. listeners=PLAINTEXT://NodeA\_ip\_address:9092,NodeB\_ip\_address:9092 etc.
Hope this helps.
Additional Read -