[typo](doc) To access a Kafka cluster with PLAIN authentication enabled (#21019)
This commit is contained in:
@ -410,6 +410,34 @@ FROM KAFKA
|
||||
>
|
||||
>
|
||||
|
||||
**Access the PLAIN certified Kafka cluster**
|
||||
|
||||
To access a Kafka cluster with PLAIN authentication enabled, you need to add the following configuration:
|
||||
|
||||
- property.security.protocol=SASL_PLAINTEXT : Use SASL plaintext
|
||||
- property.sasl.mechanism=PLAIN : Set the SASL authentication mode to PLAIN
|
||||
- property.sasl.username=admin : Set the SASL user name
|
||||
- property.sasl.password=admin : Set the SASL password
|
||||
|
||||
1. Create a routine import job
|
||||
|
||||
```sql
|
||||
CREATE ROUTINE LOAD db1.job1 on tbl1
|
||||
PROPERTIES (
|
||||
"desired_concurrent_number"="1",
|
||||
)
|
||||
FROM KAFKA
|
||||
(
|
||||
"kafka_broker_list" = "broker1:9092,broker2:9092",
|
||||
"kafka_topic" = "my_topic",
|
||||
"property.security.protocol"="SASL_PLAINTEXT",
|
||||
"property.sasl.mechanism"="PLAIN",
|
||||
"property.sasl.username"="admin",
|
||||
"property.sasl.password"="admin"
|
||||
);
|
||||
|
||||
```
|
||||
|
||||
<version since="1.2">
|
||||
|
||||
**Accessing a Kerberos-certified Kafka cluster**
|
||||
|
||||
@ -389,6 +389,34 @@ eg: user_info 表的 json 数据
|
||||
>
|
||||
> [https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md](https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md)
|
||||
|
||||
**访问 PLAIN 认证的 Kafka 集群**
|
||||
|
||||
访问开启 PLAIN 认证的Kafka集群,需要增加以下配置:
|
||||
|
||||
- property.security.protocol=SASL_PLAINTEXT : 使用 SASL plaintext
|
||||
- property.sasl.mechanism=PLAIN : 设置 SASL 的认证方式为 PLAIN
|
||||
- property.sasl.username=admin : 设置 SASL 的用户名
|
||||
- property.sasl.password=admin : 设置 SASL 的密码
|
||||
|
||||
1. 创建例行导入作业
|
||||
|
||||
```sql
|
||||
CREATE ROUTINE LOAD db1.job1 on tbl1
|
||||
PROPERTIES (
|
||||
"desired_concurrent_number"="1",
|
||||
)
|
||||
FROM KAFKA
|
||||
(
|
||||
"kafka_broker_list" = "broker1:9092,broker2:9092",
|
||||
"kafka_topic" = "my_topic",
|
||||
"property.security.protocol"="SASL_PLAINTEXT",
|
||||
"property.sasl.mechanism"="PLAIN",
|
||||
"property.sasl.username"="admin",
|
||||
"property.sasl.password"="admin"
|
||||
);
|
||||
|
||||
```
|
||||
|
||||
**访问 Kerberos 认证的 Kafka 集群**
|
||||
|
||||
<version since="1.2">
|
||||
|
||||
Reference in New Issue
Block a user