Zookeeper: It probably doesn't work.

I am trying to run zookeeper on a remote virtual machine. I regularly use this for my project and I have no problem starting zookeeper. But lately, when I try to start the server, I get an error message. When i run. /zkServer.sh, it shows that the zookeeper server is running. When I check the status using state. /zkServer.sh, it shows "Error communication service. It probably does not work." I fully work with 5 virtual machines. At first, all these cars were beautiful. I started getting problems with machine 1. But lately, I have got the same problem with all my virtual machines. Can someone tell me what the problem is and offer me a way to fix this problem?

enter image description here

+4
source share
4 answers

Most likely, the Zookeeper server came out. If we run it in a Linux box, use the linux commands. Some of them:

ps -ef | grep -i zookeeper
jps

and etc.

Also try running it in the foreground

zkServer.sh start-foreground
+15
source

In my case, the problem was the $ PATH problem ... You will get what was the problem by running zookeeper in the foreground

zkServer.sh start-foreground

+7
source

. , zookeeper node, zookeeper Quorum, .

, , node .

, ,

server.0=ip0:2888:3888
server.1=ip1:2888:3888
server.2=ip2:2888:3888
server.3=ip3:2888:3888
server.4=ip4:2888:3888
0

In my case, the problem was that the value of the ClientPort attribute was missing in one of the fields, so in the console it was displayed as an invalid configuration path. Using the command "zkServer.sh start-foreground" the main reason was discovered and found.

0
source

Source: https://habr.com/ru/post/1585012/


All Articles