zookeeper 客户端连接报: Will not attempt to authenticate using SASL

解决方法:我在学习zk的时候,用客户端连接zk,发现接收不到watch通知,并且报

如图所示错误:

后查看服务没问题:图示

 

后查看防火墙状态,关闭防火墙

连接后正常:

如果查看防火墙状态是dead,stop了,但是还是不行,就需要 vim /etc/sysconfig/iptables,把-A INPUT -m state --state NEW -m tcp -p tcp --dport 2181 -j ACCEPT

就 Ok 了

猜你喜欢

转载自www.cnblogs.com/haoliyou/p/9497962.html