Hi,
I am trying to install kafka 7.x on 3 ubuntu 20.x box
Followed all the rules to setup as given in the document page.
My servers:
kafka1 ubuntu 20.x on a Virtual box
kafka2 ubuntu 20.x on a Virtual box
kafka3 ubuntu 20.x on a Virtual box
my /etc/kafka/zookeeper.properties on all the 3 boxes
dataDir=/var/lib/zookeeper
dataLogDir=/var/logs/zookeeper
clientPort=2181
maxClientCnxns=0
admin.enableServer=false
tickTime=2000
initLimit=5
syncLimit=2
server.1=kafka1:2888:3888
server.2=kafka2:2888:3888
server.3=kafka3:2888:3888
autopurge.snapRetainCount=3
autopurge.purgeInterval=24
How I start the zookeeper ?
sudo /usr/bin/zookeeper-server-start /etc/kafka/zookeeper.properties
Started from Kafka1
Error_message for kafka2 and kafka3
.java:457)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[2021-11-29 02:11:42,446] INFO Notification time out: 12800 (org.apache.zookeeper.server.quorum.FastLeaderElection)
[2021-11-29 02:11:42,447] WARN Cannot open channel to 3 at election address kafka3/192.168.1.244:3888 (org.apache.zookeeper.server.quorum.QuorumCnxManager)
java.net.**ConnectException: Connection refused (Connection refused**)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
Tried all possibilities from stackoverview and many other places, but all in vain.
What to do? how to fix it?
Karthik