kafka 在配置sasl 认证的时候 - OSCHINA - 问题

新春现金红包与免费Linux基金会培训&认证,等你来领!>>>

我英语不好, 翻译读着怪怪的, 有个疑问

配置jaas文件的时候

KafkaServer {
    org.apache.kafka.common.security.plain.PlainLoginModule required
        username="admin"
        password="admin"
        user_admin="admin";
};

这里的 username="admin" 与 user_admin="admin" 在作用上有什么不同,

username="admin" 讲是用于broker之间通信,  如果不配置 user_admin 有影响吗?

This configuration defines two users (adminandalice). The propertiesusernameandpasswordin theKafkaServersection are used by the broker to initiate connections to other brokers. In this example,adminis the user for inter-broker communication. The set of propertiesuser_{userName}defines the passwords for all users that connect to the broker and the broker validates all client connections including those from other brokers using these properties.


原网址: 访问
创建于: 2021-02-02 09:27:29
目录: default
标签: 无

请先后发表评论
  • 最新评论
  • 总共0条评论