单机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.
请各位大佬指点一下。
查看kerberos的日志
krb5kdc.log
,里面应该有你想要的答案。感谢大佬,后来了解到,在kdc的数据库配置用户时,
xx/yy@XY.COM->
其中yy
没有指定为所用服务的主机名,所以数据库匹配不一致。你的答案