Zookeeper 错误 Will not attempt to authenticate using SASL (unknown error)

保证windows和服务器的zookeeper版本一致,jdk1.8版本

Zookeeper 错误 Will not attempt to authenticate using SASL (unknown error)_第1张图片

1)查看是不是关闭了Linux的防火墙,关闭安全策略同时查看zookeeper服务器端是否开启

修改为SELINUX=disabled

Zookeeper 错误 Will not attempt to authenticate using SASL (unknown error)_第2张图片
2)代码中的请求时间,要大于zookeeper里面配置的延迟时间

通过vim /opt/zookeeper-3.5.7/conf/zoo.cfg 查看ticketTime 

Zookeeper 错误 Will not attempt to authenticate using SASL (unknown error)_第3张图片
3)以上还是不行,请在配置一下电脑的host, C:\Windows\System32\drivers\etc\hosts 记事本打开进行ip绑定 例如 102.168.100.100  hadoop  将集群中的所有服务器的对应域名和ip写入到hosts,和服务器里hosts保持一致;

Zookeeper 错误 Will not attempt to authenticate using SASL (unknown error)_第4张图片

Zookeeper 错误 Will not attempt to authenticate using SASL (unknown error)_第5张图片

Zookeeper 错误 Will not attempt to authenticate using SASL (unknown error)_第6张图片

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