Error contacting service. It is probably not running.

Error contacting service. It is probably not running.

一直运行正常的zookeeper突然有两个节点启动不了了
报错如下:Error contacting service. It is probably not running.

查看没有启动的zookeeper.out 发现错误:
Cannot open channel to 102 at election address node102/192.168.50.102:3888

再往下看,最后一行说:
/home/user1/modules/zookeeper-3.4.6/data/version-2/snapshot.a000001f7 没有限权。

进入/home/user1/modules/zookeeper-3.4.6/data/version-2/目录,发现有两个文件的用户和用户组属于root。
我便想起来,我在root下启动了zookeeper,虽然后来关闭了,但还是产生了错误,用chown 命令把文件所属用户和用户组改了之后,再重新启动,该节点服务正常启动

然后再修改另一个节点,服务就正常启动了

你可能感兴趣的:(linux,zookeeper)