问题描述

zookeeper的server启动报错:java io.IOException: Could not configure server because SASL configuration did not allow the ZooKeeper server to authenticate itself properly: javax securityauth.login.LoginException: xxxxx@4.htsc.com

FAQ-zookeeper的server无法启动 - 图1

问题原因

在root用户下能够正常ping通kdc节点;在zookeeper用户下无法正常ping通kdc节点,由于/etc/nsswitch.conf 文件做了软件,检查/etc/authselect/nsswitch.conf及/etc/authselect目录的权限为600,导致zookeeper用户无法访问

解决方法

/etc/authselect目录的权限修改为644 chmod 644 /etc/authselect