[fix](doc) Modify README.md Change ‘kafka_default_offset’ to ‘kafka_default_offsets’. (#23791)
This commit is contained in:
@ -582,7 +582,7 @@ Assuming that we need to import data from Kafka into tables "test1" and "test2"
|
||||
(
|
||||
"kafka_broker_list" = "broker1:9092,broker2:9092",
|
||||
"kafka_topic" = "my_topic",
|
||||
"kafka_default_offset" = "2021-05-21 10:00:00"
|
||||
"kafka_default_offsets" = "2021-05-21 10:00:00"
|
||||
);
|
||||
````
|
||||
|
||||
@ -600,11 +600,11 @@ There are three relevant parameters:
|
||||
|
||||
- `kafka_partitions`: Specify a list of partitions to be consumed, such as "0, 1, 2, 3".
|
||||
- `kafka_offsets`: Specify the starting offset of each partition, which must correspond to the number of `kafka_partitions` list. For example: "1000, 1000, 2000, 2000"
|
||||
- `property.kafka_default_offset`: Specifies the default starting offset of the partition.
|
||||
- `property.kafka_default_offsets`: Specifies the default starting offset of the partition.
|
||||
|
||||
When creating an import job, these three parameters can have the following combinations:
|
||||
|
||||
| Composition | `kafka_partitions` | `kafka_offsets` | `property.kafka_default_offset` | Behavior |
|
||||
| Composition | `kafka_partitions` | `kafka_offsets` | `property.kafka_default_offsets` | Behavior |
|
||||
| ----------- | ------------------ | --------------- | ------------------------------- | ------------------------------------------------------------ |
|
||||
| 1 | No | No | No | The system will automatically find all partitions corresponding to the topic and start consumption from OFFSET_END |
|
||||
| 2 | No | No | Yes | The system will automatically find all partitions corresponding to the topic and start consumption from the location specified by default offset |
|
||||
|
||||
@ -583,7 +583,7 @@ FROM data_source [data_source_properties]
|
||||
(
|
||||
"kafka_broker_list" = "broker1:9092,broker2:9092",
|
||||
"kafka_topic" = "my_topic",
|
||||
"kafka_default_offset" = "2021-05-21 10:00:00"
|
||||
"kafka_default_offsets" = "2021-05-21 10:00:00"
|
||||
);
|
||||
```
|
||||
|
||||
@ -601,11 +601,11 @@ Doris 支持指定 Partition 和 Offset 开始消费,还支持了指定时间
|
||||
|
||||
- `kafka_partitions`:指定待消费的 partition 列表,如:"0, 1, 2, 3"。
|
||||
- `kafka_offsets`:指定每个分区的起始offset,必须和 `kafka_partitions` 列表个数对应。如:"1000, 1000, 2000, 2000"
|
||||
- `property.kafka_default_offset`:指定分区默认的起始offset。
|
||||
- `property.kafka_default_offsets:指定分区默认的起始offset。
|
||||
|
||||
在创建导入作业时,这三个参数可以有以下组合:
|
||||
|
||||
| 组合 | `kafka_partitions` | `kafka_offsets` | `property.kafka_default_offset` | 行为 |
|
||||
| 组合 | `kafka_partitions` | `kafka_offsets` | `property.kafka_default_offsets` | 行为 |
|
||||
| ---- | ------------------ | --------------- | ------------------------------- | ------------------------------------------------------------ |
|
||||
| 1 | No | No | No | 系统会自动查找topic对应的所有分区并从 OFFSET_END 开始消费 |
|
||||
| 2 | No | No | Yes | 系统会自动查找topic对应的所有分区并从 default offset 指定的位置开始消费 |
|
||||
|
||||
Reference in New Issue
Block a user