Skip to content

Commit

Permalink
[FLINK-29920][docs] Minor reformat Kafka connector documentation (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
liuml07 committed Nov 9, 2022
1 parent 5ac290a commit 9c1a1a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions docs/content.zh/docs/connectors/table/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,13 +471,12 @@ ROW<`version` INT, `behavior` STRING>
### 起始消费位点

`scan.startup.mode` 配置项决定了 Kafka consumer 的启动模式。有效值为:
<ul>
<li><span markdown="span">`group-offsets`</span>:从 Zookeeper/Kafka 中某个指定的消费组已提交的偏移量开始。</li>
<li><span markdown="span">`earliest-offset`</span>:从可能的最早偏移量开始。</li>
<li><span markdown="span">`latest-offset`</span>:从最末尾偏移量开始。</li>
<li><span markdown="span">`timestamp`</span>:从用户为每个 partition 指定的时间戳开始。</li>
<li><span markdown="span">`specific-offsets`</span>:从用户为每个 partition 指定的偏移量开始。</li>
</ul>

* `group-offsets`:从 Zookeeper/Kafka 中某个指定的消费组已提交的偏移量开始。
* `earliest-offset`:从可能的最早偏移量开始。
* `latest-offset`:从最末尾偏移量开始。
* `timestamp`:从用户为每个 partition 指定的时间戳开始。
* `specific-offsets`:从用户为每个 partition 指定的偏移量开始。

默认值 `group-offsets` 表示从 Zookeeper/Kafka 中最近一次已提交的偏移量开始消费。

Expand Down
13 changes: 6 additions & 7 deletions docs/content/docs/connectors/table/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,12 @@ Note that topic list and topic pattern only work in sources. In sinks, Flink cur
### Start Reading Position

The config option `scan.startup.mode` specifies the startup mode for Kafka consumer. The valid enumerations are:
<ul>
<li><span markdown="span">`group-offsets`</span>: start from committed offsets in ZK / Kafka brokers of a specific consumer group.</li>
<li><span markdown="span">`earliest-offset`</span>: start from the earliest offset possible.</li>
<li><span markdown="span">`latest-offset`</span>: start from the latest offset.</li>
<li><span markdown="span">`timestamp`</span>: start from user-supplied timestamp for each partition.</li>
<li><span markdown="span">`specific-offsets`</span>: start from user-supplied specific offsets for each partition.</li>
</ul>

* `group-offsets`: start from committed offsets in ZK / Kafka brokers of a specific consumer group.
* `earliest-offset`: start from the earliest offset possible.
* `latest-offset`: start from the latest offset.
* `timestamp`: start from user-supplied timestamp for each partition.
* `specific-offsets`: start from user-supplied specific offsets for each partition.

The default option value is `group-offsets` which indicates to consume from last committed offsets in ZK / Kafka brokers.

Expand Down

0 comments on commit 9c1a1a1

Please sign in to comment.