返回到文章

采纳

编辑于 4年前

zookeeper认证kafka失败

kafka

报错:

2021-04-29 10:38:53,122 [myid:1] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:SaslServerCallbackHandler@93] - User 'test' not found in list of DIGEST-MD5 authenticateable users.
2021-04-29 10:38:53,122 [myid:1] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:SaslServerCallbackHandler@107] - No password found for user: null
2021-04-29 10:38:53,122 [myid:1] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@1043] - Client failed to SASL authenticate: javax.security.sasl.SaslException: DIGEST-MD5: cannot acquire password for test in realm : zk-sasl-md5
javax.security.sasl.SaslException: DIGEST-MD5: cannot acquire password for test in realm : zk-sasl-md5

zookeeper_jaas.conf

Server {
    org.apache.zookeeper.server.auth.DigestLoginModule required
    username="test"
    password="password";
};

kafka_server_jaas.conf

Client{
 org.apache.zookeeper.server.auth.DigestLoginModule required
 username="test"
 password="password";
};