0


kafka开kerberos认证报错the client is being asked for a password

@Kafka kerberos认证错误记录TOC

kafka开发调试 kerberos认证错误记录

背景

kafka 开发调试,开 kerberos情况下遇到的错误。

错误日志

Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. not available to garner authentication information from the user
error日志在这里插入图片描述

Caused by: javax.security.auth.login.LoginException: Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. not available to garner authentication information from the user
at com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:940) ~[na:1.8.0_121]
at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:760) ~[na:1.8.0_121]
at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617) ~[na:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755) ~[na:1.8.0_121]
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195) ~[na:1.8.0_121]
a

错误原因

由于 keytab与principle 不匹配引发的。

解决方式

更新一下正确 keytab 文件 就OK了.

标签: java kafka 开发语言

本文转载自: https://blog.csdn.net/mdming412/article/details/128690345
版权归原作者 鸣一 所有, 如有侵权,请联系我们删除。

“kafka开kerberos认证报错the client is being asked for a password”的评论:

还没有评论