BigData技术学习

zookeeper安装错误

2017-04-07  本文已影响27人  sunTengSt

问题:Using config: /usr/local/zk/bin/../conf/zoo.cfg

Error contacting service. It is probably not running.

解决办法

先stop 掉原zk

zkServer.sh stop

然后以start-foreground方式启动,会看到启动日志

zkServer.sh start-foreground

原因:

本人zoo.cfg配置文件中主机名写错,导致启动失败。

*******************************************

问题没解决。(Error contacting service. It is probably not running.)

手动启动其他机器zookeeper。然后查看zkServer.sh status

Mode: follower

启动正常所有机器。

centos7防火墙问题:

1、直接关闭防火墙

systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall开机启动

firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running

2、设置 iptables service

yum -y install iptables-services

如果要修改防火墙配置,如增加防火墙端口3306

vi /etc/sysconfig/iptables

增加规则

-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT

保存退出后

systemctl restart iptables.service #重启防火墙使配置生效

systemctl enable iptables.service #设置防火墙开机启动

最后重启系统使设置生效即可。

上一篇 下一篇

猜你喜欢

热点阅读