Kafka 凭证(Kafka credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
支持的身份验证方法(Supported authentication methods)#
- 客户端 ID
相关资源(Related resources)#
有关使用该服务的更多信息,请参阅 Kafka 的文档。
🌐 Refer to Kafka's documentation for more information about using the service.
如果你是 Kafka 新手,请参考 Apache Kafka 快速入门 进行初始设置。
🌐 If you're new to Kafka, refer to the Apache Kafka Quickstart for initial setup.
有关在 Kafka 中使用 SSL 的操作,请参阅 使用 SSL 的加密和身份验证。
🌐 Refer to Encryption and Authentication using SSL for working with SSL in Kafka.
使用客户端 ID(Using client ID)#
要配置此凭据,你需要一个正在运行的 Kafka 环境以及:
🌐 To configure this credential, you'll need a running Kafka environment and:
- 客户端 ID
- 相关经纪人列表
- 如果你的 Kafka 环境使用身份验证,则需要提供用户名/密码身份验证详细信息。
设置:
🌐 To set it up:
- 在你的凭证的 Client ID 字段中输入客户端或消费者组的
CLIENT-ID。 - 输入与凭证相关的经纪人的逗号分隔列表,格式为
<broker-service-name>:<port>。使用在services列表中定义该经纪人时给出的名称。例如,kafka-1:9092,kafka-2:9092将在端口9092上添加经纪人kafka-1和kafka-2。 - 如果你的 Kafka 环境不使用 SSL,请关闭 SSL 开关。
- 如果你在 Kafka 环境中启用了使用 SASL 的身份验证,请打开 Authentication 切换开关。然后添加:
- 用户名
- 密码
- 选择经纪人配置的 SASL 机制。更多信息请参见SASL 配置。选项包括:
Plainscram-sha-256scram-sha-512