kafka认证客户端需要密码

萝卜权。 发表于: 2019-07-23   最后更新时间: 2019-07-23 15:59:17   3,553 游览

关于kafka producer跟consumer的问题,在idea跟集群都出现了这个问题。麻烦博主抽时间看下这个问题,感谢。

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)
        at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:760)
        at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
        at org.apache.kafka.common.security.authenticator.AbstractLogin.login(AbstractLogin.java:52)
        at org.apache.kafka.common.security.kerberos.KerberosLogin.login(KerberosLogin.java:98)
        at org.apache.kafka.common.security.authenticator.LoginManager.<init>(LoginManager.java:53)
        at org.apache.kafka.common.security.authenticator.LoginManager.acquireLoginManager(LoginManager.java:82)
        at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:103)
        ... 10 more
发表于 2019-07-23
添加评论

kafka客户端版本不兼容这个方式哦。

您好, kafka集群 是 0.10.2, 客户端什么版本能兼容支持这个 认证呢, apache1.0 客户端都不支持

你的答案

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