kafka集成kerberos启动失败,Caused by GSSException: No valid credentials provided (Mechanism level: Server not found in Kerberos database

还好。。。 发表于: 2022-04-02   最后更新时间: 2022-04-02 15:17:37   3,650 游览

单机kafka集成kerberos,zk启动成功,但是kafka启动失败,报错代码:

ERROR SASL authentication with Zookeeper Quorum member failed: javax.security.sasl.SaslException: An error: (java.security.PrivilegedActionException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Server not found in Kerberos database (7) - LOOKING_UP_SERVER)]) occurred when evaluating Zookeeper Quorum Member's received SASL token. Zookeeper Client will go to AUTH_FAILED state.

请各位大佬指点一下。

发表于 2022-04-02
添加评论

查看kerberos的日志krb5kdc.log,里面应该有你想要的答案。

感谢大佬,后来了解到,在kdc的数据库配置用户时,xx/yy@XY.COM->其中yy没有指定为所用服务的主机名,所以数据库匹配不一致。

你的答案

查看Kerberos相关的其他问题或提一个您自己的问题