ZooKeeper 集群搭建 Error contacting service. It is probably not running.

搭建环境:Centos 7 虚拟机 3台

这里写图片描述

按照此教程搭建:https://www.ilanni.com/?p=11393

之后出现错误:Error contacting service. It is probably not running,这个错误是zkServer.sh最后验证状态报的错误,正常情况下状态是leader或者follower。

网上有关这个问题出现的可能性有很多分析,大家自行搜索,我按照上面这个教程最后定位到问题是 : 需要关闭机器的防火墙。

$ systemctl stop firewalld.service  //Centos 7 or RedHat 

赞那个教程,很详细,之前是看到这个docker的方式 https://segmentfault.com/a/1190000006907443,但是我没有尝试成功。

不过还有一些东西是
Mac上安装docker:https://yeasy.gitbooks.io/docker_practice/content/install/mac.html
安装docker之后镜像加速:https://yq.aliyun.com/articles/29941

posted on 2017-08-31 23:45  杨博东的博客  阅读(49)  评论(0编辑  收藏  举报

导航