We had issues on producer not sending messages and we tried a lot of solutions which did not work. Finally, we thought to install kafka on single node but the cluster settings is overriding the single node settings.
OS:- Centos 7
kafka version 2.12-3.0.0
cluster size 2
zookeeper runs on 3 nodes
we try to run the
~/kafka/bin/kafka-server-start.sh ~/kafka/config/server.properties
In server.properties , we changed the
zookeeper.connect=localhost:2181
But we get SocketServer BrokerId Unexpected error from IP address, the broker is of the other node which should not be in contention while running in single node.
Also what is the command to uninstall kafka in linux.
We have kafka running on 2 nodes. Kafka monitor running on 3 rd node.
Zookeeper is running in all the three systems.
Yes we used zip to install kafka, earlier I assume it was installed using ansible playbook. As we were not able to uninstall it, we deleted the kafka folder in server and reinstalled it using unzipping the downloaded file from apache website
But we tried to do a standalone installation for a single node,by deleting the earlier configurations.
We did edited the hosts file and has only 1 ip for both kafka and zookeeper. However, the kafka is looking for other nodes and is not working as a single node. We are unsure how the properties are getting overidden, as similar process when ran on personal laptop, it did setup Kafka correctly and producer was able to transmit messages and consumer was able to receive as well
The same setting on server is not working correctly.