Kafka 凭证#
¥Kafka credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
支持的身份验证方法#
¥Supported authentication methods
- 客户端 ID
¥Client 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
¥A Client ID
- 相关代理列表
¥A list of relevant Brokers
- 如果你的 Kafka 环境使用身份验证,则需要提供用户名/密码身份验证详细信息。
¥Username/password authentication details if your Kafka environment uses authentication
设置:
¥To set it up:
- 在凭据的“客户端 ID”字段中输入客户端或消费者组的
CLIENT-ID。
¥Enter the CLIENT-ID of the client or consumer group in the Client ID field in your credential.
2. 输入要用于此凭据的相关代理列表(以逗号分隔),格式为 <broker-service-name>:<port>。使用你在 services 列表中定义代理时为其指定的名称。例如,kafka-1:9092,kafka-2:9092 会将端口 9092 上的代理 kafka-1 和 kafka-2 添加进去。
¥Enter a comma-separated list of relevant Brokers for the credential to use in the format <broker-service-name>:<port>. Use the name you gave the broker when you defined it in the services list. For example, kafka-1:9092,kafka-2:9092 would add the brokers kafka-1 and kafka-2 on port 9092.
3. 如果你的 Kafka 环境未使用 SSL,请关闭 SSL 开关。
¥If your Kafka environment doesn't use SSL, turn off the SSL toggle. 4. 如果你已在 Kafka 环境中启用 SASL 身份验证,请打开身份验证开关。然后添加:
¥If you've enabled authentication using SASL in your Kafka environment, turn on the Authentication toggle. Then add: 1. 用户名
1 | |
-
密码
¥The Password 3. 选择代理配置的 SASL 机制。有关更多信息,请参阅 SASL 配置。选项包括:
¥Select the broker's configured SASL Mechanism. Refer to SASL configuration for more information. Options include:
-
Plain -
scram-sha-256 -
scram-sha-512
-