You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ja...@apache.org on 2020/06/11 16:37:00 UTC

[flink] branch release-1.11 updated (e2ec853 -> aab147c)

This is an automated email from the ASF dual-hosted git repository.

jark pushed a change to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git.


    from e2ec853  [hotfix] Fix head --lines usage in test scripts
     new b611a1a  [FLINK-17831][docs] Add documentation for the new Kafka connector
     new 4581d54  [hotfix][docs][connectors] Improve SQL connectors documentation
     new aab147c  [hotfix][docs] Fix parts of broken links

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/dev/api_concepts.zh.md                    | 778 -------------------------
 docs/dev/batch/connectors.md                   |   2 +-
 docs/dev/batch/connectors.zh.md                |   2 +-
 docs/dev/batch/index.md                        |   2 +-
 docs/dev/batch/index.zh.md                     |   2 +-
 docs/dev/connectors/cassandra.md               |   2 +-
 docs/dev/connectors/cassandra.zh.md            |   2 +-
 docs/dev/connectors/elasticsearch.md           |   4 +-
 docs/dev/connectors/elasticsearch.zh.md        |   4 +-
 docs/dev/connectors/filesystem_sink.md         |   2 +-
 docs/dev/connectors/filesystem_sink.zh.md      |   2 +-
 docs/dev/connectors/jdbc.md                    |   2 +-
 docs/dev/connectors/jdbc.zh.md                 |   2 +-
 docs/dev/connectors/kafka.md                   |   2 +-
 docs/dev/connectors/kafka.zh.md                |   2 +-
 docs/dev/connectors/nifi.md                    |   2 +-
 docs/dev/connectors/nifi.zh.md                 |   2 +-
 docs/dev/connectors/pubsub.md                  |   2 +-
 docs/dev/connectors/pubsub.zh.md               |   2 +-
 docs/dev/connectors/rabbitmq.md                |   2 +-
 docs/dev/connectors/rabbitmq.zh.md             |   2 +-
 docs/dev/connectors/twitter.md                 |   2 +-
 docs/dev/connectors/twitter.zh.md              |   2 +-
 docs/dev/libs/cep.md                           |   4 +-
 docs/dev/libs/cep.zh.md                        |   4 +-
 docs/dev/libs/gelly/index.md                   |   2 +-
 docs/dev/libs/gelly/index.zh.md                |   2 +-
 docs/dev/project-configuration.md              |   4 +-
 docs/dev/project-configuration.zh.md           |   4 +-
 docs/dev/stream/state/queryable_state.md       |   2 +-
 docs/dev/stream/state/queryable_state.zh.md    |   2 +-
 docs/dev/table/connectors/elasticsearch.md     |   6 +-
 docs/dev/table/connectors/elasticsearch.zh.md  |   6 +-
 docs/dev/table/connectors/filesystem.md        |   2 +-
 docs/dev/table/connectors/filesystem.zh.md     |   2 +-
 docs/dev/table/connectors/formats/avro.md      |  82 +--
 docs/dev/table/connectors/formats/avro.zh.md   |  84 +--
 docs/dev/table/connectors/formats/csv.md       | 103 ++--
 docs/dev/table/connectors/formats/csv.zh.md    | 103 ++--
 docs/dev/table/connectors/formats/index.md     |  14 +-
 docs/dev/table/connectors/formats/index.zh.md  |  14 +-
 docs/dev/table/connectors/formats/json.md      |  80 +--
 docs/dev/table/connectors/formats/json.zh.md   |  80 +--
 docs/dev/table/connectors/hbase.md             |  54 +-
 docs/dev/table/connectors/hbase.zh.md          |  54 +-
 docs/dev/table/connectors/index.md             |  18 +-
 docs/dev/table/connectors/index.zh.md          |  24 +-
 docs/dev/table/connectors/jdbc.md              |   6 +-
 docs/dev/table/connectors/jdbc.zh.md           |   6 +-
 docs/dev/table/connectors/kafka.md             | 209 +++++++
 docs/dev/table/connectors/kafka.zh.md          | 209 +++++++
 docs/dev/table/hive/index.md                   |   2 +-
 docs/dev/table/hive/index.zh.md                |   2 +-
 docs/dev/table/sql/create.md                   |   6 +-
 docs/dev/table/sql/create.zh.md                |   6 +-
 docs/dev/table/streaming/match_recognize.md    |   2 +-
 docs/dev/table/streaming/match_recognize.zh.md |   2 +-
 docs/flinkDev/ide_setup.md                     |   4 +-
 docs/flinkDev/ide_setup.zh.md                  |   4 +-
 docs/learn-flink/datastream_api.zh.md          |   2 +-
 60 files changed, 841 insertions(+), 1195 deletions(-)
 delete mode 100644 docs/dev/api_concepts.zh.md
 create mode 100644 docs/dev/table/connectors/kafka.md
 create mode 100644 docs/dev/table/connectors/kafka.zh.md


[flink] 03/03: [hotfix][docs] Fix parts of broken links

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jark pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git

commit aab147c4323fc4f121127469fafb8ba61536bd5f
Author: Jark Wu <ja...@apache.org>
AuthorDate: Fri Jun 12 00:32:10 2020 +0800

    [hotfix][docs] Fix parts of broken links
---
 docs/dev/api_concepts.zh.md                    | 778 -------------------------
 docs/dev/batch/connectors.md                   |   2 +-
 docs/dev/batch/connectors.zh.md                |   2 +-
 docs/dev/batch/index.md                        |   2 +-
 docs/dev/batch/index.zh.md                     |   2 +-
 docs/dev/connectors/cassandra.md               |   2 +-
 docs/dev/connectors/cassandra.zh.md            |   2 +-
 docs/dev/connectors/elasticsearch.md           |   4 +-
 docs/dev/connectors/elasticsearch.zh.md        |   4 +-
 docs/dev/connectors/filesystem_sink.md         |   2 +-
 docs/dev/connectors/filesystem_sink.zh.md      |   2 +-
 docs/dev/connectors/jdbc.md                    |   2 +-
 docs/dev/connectors/jdbc.zh.md                 |   2 +-
 docs/dev/connectors/kafka.md                   |   2 +-
 docs/dev/connectors/kafka.zh.md                |   2 +-
 docs/dev/connectors/nifi.md                    |   2 +-
 docs/dev/connectors/nifi.zh.md                 |   2 +-
 docs/dev/connectors/pubsub.md                  |   2 +-
 docs/dev/connectors/pubsub.zh.md               |   2 +-
 docs/dev/connectors/rabbitmq.md                |   2 +-
 docs/dev/connectors/rabbitmq.zh.md             |   2 +-
 docs/dev/connectors/twitter.md                 |   2 +-
 docs/dev/connectors/twitter.zh.md              |   2 +-
 docs/dev/libs/cep.md                           |   4 +-
 docs/dev/libs/cep.zh.md                        |   4 +-
 docs/dev/libs/gelly/index.md                   |   2 +-
 docs/dev/libs/gelly/index.zh.md                |   2 +-
 docs/dev/project-configuration.md              |   4 +-
 docs/dev/project-configuration.zh.md           |   4 +-
 docs/dev/stream/state/queryable_state.md       |   2 +-
 docs/dev/stream/state/queryable_state.zh.md    |   2 +-
 docs/dev/table/hive/index.md                   |   2 +-
 docs/dev/table/hive/index.zh.md                |   2 +-
 docs/dev/table/sql/create.md                   |   6 +-
 docs/dev/table/sql/create.zh.md                |   6 +-
 docs/dev/table/streaming/match_recognize.md    |   2 +-
 docs/dev/table/streaming/match_recognize.zh.md |   2 +-
 docs/flinkDev/ide_setup.md                     |   4 +-
 docs/flinkDev/ide_setup.zh.md                  |   4 +-
 docs/learn-flink/datastream_api.zh.md          |   2 +-
 40 files changed, 51 insertions(+), 829 deletions(-)

diff --git a/docs/dev/api_concepts.zh.md b/docs/dev/api_concepts.zh.md
deleted file mode 100644
index c71d635..0000000
--- a/docs/dev/api_concepts.zh.md
+++ /dev/null
@@ -1,778 +0,0 @@
----
-title: "基础 API 概念"
-nav-parent_id: dev
-nav-pos: 1
-nav-show_overview: true
-nav-id: api-concepts
----
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-
-Flink 程序是实现了分布式集合转换(例如过滤、映射、更新状态、join、分组、定义窗口、聚合)的规范化程序。集合初始创建自 source(例如读取文件、kafka 主题,或本地内存中的集合)。结果通过 sink 返回,例如,它可以将数据写入(分布式)文件,或标准输出(例如命令行终端)。Flink 程序可以在多种环境中运行,独立运行或嵌入到其他程序中。可以在本地 JVM 中执行,也可以在多台机器的集群上执行。
-
-针对有界和无界两种数据 source 类型,你可以使用 DataSet API 来编写批处理程序或使用 DataStream API 来编写流处理程序。本篇指南将介绍这两种 API 通用的基本概念,关于使用 API 编写程序的具体信息请查阅
-[流处理指南]({{ site.baseurl }}/zh/dev/datastream_api.html) 和
-[批处理指南]({{ site.baseurl }}/zh/dev/batch/index.html)。
-
-**请注意:** 当展示如何使用 API 的实际示例时我们使用 `StreamingExecutionEnvironment` 和 `DataStream API`。对于批处理,将他们替换为 `ExecutionEnvironment` 和 `DataSet API` 即可,概念是完全相同的。
-
-* This will be replaced by the TOC
-{:toc}
-
-DataSet 和 DataStream
-----------------------
-
-Flink 用特有的 `DataSet` 和 `DataStream` 类来表示程序中的数据。你可以将他们视为可能包含重复项的不可变数据集合。对于 `DataSet`,数据是有限的,而对于 `DataStream`,元素的数量可以是无限的。
-
-这些集合与标准的 Java 集合有一些关键的区别。首先它们是不可变的,也就是说它们一旦被创建你就不能添加或删除元素了。你也不能简单地检查它们内部的元素。
-
-在 Flink 程序中,集合最初通过添加数据 source 来创建,通过使用诸如 `map`、`filter` 等 API 方法对数据 source 进行转换从而派生新的集合。
-
-剖析一个 Flink 程序
---------------------------
-
-Flink 程序看起来像是转换数据集合的规范化程序。每个程序由一些基本的部分组成:
-
-1. 获取执行环境,
-2. 加载/创建初始数据,
-3. 指定对数据的转换操作,
-4. 指定计算结果存放的位置,
-5. 触发程序执行
-
-
-<div class="codetabs" markdown="1">
-<div data-lang="java" markdown="1">
-
-
-我们现在将概述每个步骤,详细信息请参阅相应章节。请注意所有 Java DataSet API 的核心类可以在这个包 {% gh_link /flink-java/src/main/java/org/apache/flink/api/java "org.apache.flink.api.java" %} 中找到,同时 Java DataStream API 可以在这个包
-{% gh_link /flink-streaming-java/src/main/java/org/apache/flink/streaming/api "org.apache.flink.streaming.api" %} 中找到。
-
-`StreamExecutionEnvironment` 是所有 Flink 程序的基础。你可以使用它的这些静态方法获取:
-
-{% highlight java %}
-getExecutionEnvironment()
-
-createLocalEnvironment()
-
-createRemoteEnvironment(String host, int port, String... jarFiles)
-{% endhighlight %}
-
-通常你只需要使用 `getExecutionEnvironment()`,因为它会根据上下文环境完成正确的工作:如果你在 IDE 中执行程序或者作为标准的 Java 程序来执行,它会创建你的本机执行环境;如果你将程序封装成 JAR 包,然后通过[命令行]({{ site.baseurl }}/zh/ops/cli.html)调用,Flink 集群管理器会执行你的 main 方法并且 `getExecutionEnvironment()` 会返回在集群上执行程序的执行环境。
-
-针对不同的数据 source,执行环境有若干不同读取文件的方法:你可以逐行读取 CSV 文件,或者使用完全自定义的输入格式。要将文本文件作为一系列行读取,你可以使用:
-
-{% highlight java %}
-final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
-
-DataStream<String> text = env.readTextFile("file:///path/to/file");
-{% endhighlight %}
-
-这样你会得到一个 DataStream 然后对其应用转换操作从而创建新的派生 DataStream。
-
-通过调用 DataStream 的转换函数来进行转换。下面是一个映射转换的实例:
-
-{% highlight java %}
-DataStream<String> input = ...;
-
-DataStream<Integer> parsed = input.map(new MapFunction<String, Integer>() {
-    @Override
-    public Integer map(String value) {
-        return Integer.parseInt(value);
-    }
-});
-{% endhighlight %}
-
-这会通过把原始数据集合的每个字符串转换为一个整数创建一个新的 DataStream。
-
-一旦你得到了包含最终结果的 DataStream,就可以通过创建 sink 将其写入外部系统。如下是一些创建 sink 的示例:
-
-{% highlight java %}
-writeAsText(String path)
-
-print()
-{% endhighlight %}
-
-</div>
-<div data-lang="scala" markdown="1">
-
-我们现在将概述每个步骤,详细信息请参阅相应章节。请注意所有 Scala DataSet API 可以在这个包 {% gh_link /flink-scala/src/main/scala/org/apache/flink/api/scala "org.apache.flink.api.scala" %} 中找到,同时,所有 Scala DataStream API 可以在这个包 {% gh_link /flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala "org.apache.flink.streaming.api.scala" %} 中找到。
-
-`StreamExecutionEnvironment` 是所有 Flink 程序的基础。你可以使用它的这些静态方法获取:
-
-{% highlight scala %}
-getExecutionEnvironment()
-
-createLocalEnvironment()
-
-createRemoteEnvironment(host: String, port: Int, jarFiles: String*)
-{% endhighlight %}
-
-通常你只需要使用 `getExecutionEnvironment()`,因为它会根据上下文环境完成正确的工作,如果你在 IDE 中执行程序或者作为标准的 Java 程序来执行,它会创建你的本机执行环境。如果你将程序封装成 JAR 包,然后通过[命令行]({{ site.baseurl }}/zh/ops/cli.html)调用,Flink 集群管理器会执行你的 main 方法并且 `getExecutionEnvironment()` 会返回在集群上执行程序的执行环境。
-
-针对不同的数据 source,执行环境有若干不同的读取文件的方法:你可以逐行读取 CSV 文件,或者使用完全自定义的输入格式。要将文本文件作为一系列行读取,你可以使用:
-
-{% highlight scala %}
-val env = StreamExecutionEnvironment.getExecutionEnvironment()
-
-val text: DataStream[String] = env.readTextFile("file:///path/to/file")
-{% endhighlight %}
-
-如此你会得到一个 DataStream 然后对其应用转换操作从而创建新的派生 DataStream。
-
-通过调用 DataStream 的转换函数来进行转换。下面是一个映射转换的实例:
-
-{% highlight scala %}
-val input: DataSet[String] = ...
-
-val mapped = input.map { x => x.toInt }
-{% endhighlight %}
-
-这会通过把原始数据集合的每个字符串转换为一个整数创建一个新的 DataStream。
-
-一旦你得到了包含最终结果的 DataStream,就可以通过创建 sink 将其写入外部系统。如下是一些创建 sink 的示例:
-
-{% highlight scala %}
-writeAsText(path: String)
-
-print()
-{% endhighlight %}
-
-</div>
-</div>
-
-当设定好整个程序以后你需要调用 `StreamExecutionEnvironment` 的 `execute()` 方法**触发程序执行**。至于在你的本机触发还是提交到集群运行取决于 `ExecutionEnvironment` 的类型。
-
-`execute()` 方法返回 `JobExecutionResult`,它包括执行耗时和一个累加器的结果。
-
-如果你不需要等待作业的结束,只是想要触发程序执行,你可以调用 `StreamExecutionEnvironment` 的 `executeAsync()` 方法。这个方法将返回一个 `JobClient` 对象,通过 `JobClient` 能够与程序对应的作业进行交互。作为例子,这里介绍通过 `executeAsync()` 实现与 `execute()` 相同行为的方法。
-
-{% highlight java %}
-final JobClient jobClient = env.executeAsync();
-
-final JobExecutionResult jobExecutionResult = jobClient.getJobExecutionResult(userClassloader).get();
-{% endhighlight %}
-
-有关流数据的 source 和 sink 以及有关 DataStream 支持的转换操作的详细信息请参阅[流处理指南]({{ site.baseurl }}/zh/dev/datastream_api.html)。
-
-有关批数据的 source 和 sink 以及有关 DataSet 支持的转换操作的详细信息请参阅[批处理指南]({{ site.baseurl }}/zh/dev/batch/index.html)。
-
-
-{% top %}
-
-延迟计算
----------------
-
-无论在本地还是集群执行,所有的 Flink 程序都是延迟执行的:当程序的 main 方法被执行时,并不立即执行数据的加载和转换,而是创建每个操作并将其加入到程序的执行计划中。当执行环境调用 `execute()` 方法显式地触发执行的时候才真正执行各个操作。
-
-延迟计算允许你构建复杂的程序,Flink 将其作为整体计划单元来执行。
-
-{% top %}
-
-指定键
----------------
-
-一些转换操作(join, coGroup, keyBy, groupBy)要求在元素集合上定义键。另外一些转换操作 (Reduce, GroupReduce, Aggregate, Windows)允许在应用这些转换之前将数据按键分组。
-
-如下对 DataSet 分组
-{% highlight java %}
-DataSet<...> input = // [...]
-DataSet<...> reduced = input
-  .groupBy(/*在这里定义键*/)
-  .reduceGroup(/*一些处理操作*/);
-{% endhighlight %}
-
-如下对 DataStream 指定键
-{% highlight java %}
-DataStream<...> input = // [...]
-DataStream<...> windowed = input
-  .keyBy(/*在这里定义键*/)
-  .window(/*指定窗口*/);
-{% endhighlight %}
-
-Flink 的数据模型不是基于键值对的。因此你不需要将数据集类型物理地打包到键和值中。键都是“虚拟的”:它们的功能是指导分组算子用哪些数据来分组。
-
-**请注意:**下面的讨论中我们将以 `DataStream` 和 `keyby` 为例。
-对于 DataSet API 你只需要用 `DataSet` 和 `groupBy` 替换即可。
-
-### 为 Tuple 定义键
-{:.no_toc}
-
-最简单的方式是按照 Tuple 的一个或多个字段进行分组:
-
-<div class="codetabs" markdown="1">
-<div data-lang="java" markdown="1">
-{% highlight java %}
-DataStream<Tuple3<Integer,String,Long>> input = // [...]
-KeyedStream<Tuple3<Integer,String,Long>,Tuple> keyed = input.keyBy(0)
-{% endhighlight %}
-</div>
-<div data-lang="scala" markdown="1">
-{% highlight scala %}
-val input: DataStream[(Int, String, Long)] = // [...]
-val keyed = input.keyBy(0)
-{% endhighlight %}
-</div>
-</div>
-
-按照第一个字段(整型字段)对 Tuple 分组。
-
-<div class="codetabs" markdown="1">
-<div data-lang="java" markdown="1">
-{% highlight java %}
-DataStream<Tuple3<Integer,String,Long>> input = // [...]
-KeyedStream<Tuple3<Integer,String,Long>,Tuple> keyed = input.keyBy(0,1)
-{% endhighlight %}
-</div>
-<div data-lang="scala" markdown="1">
-{% highlight scala %}
-val input: DataSet[(Int, String, Long)] = // [...]
-val grouped = input.groupBy(0,1)
-{% endhighlight %}
-</div>
-</div>
-
-这里我们用第一个字段和第二个字段组成的组合键对 Tuple 分组
-
-对于嵌套 Tuple 请注意: 如果你的 DataStream 是嵌套 Tuple,例如:
-
-{% highlight java %}
-DataStream<Tuple3<Tuple2<Integer, Float>,String,Long>> ds;
-{% endhighlight %}
-
-指定 `keyBy(0)` 将导致系统使用整个 `Tuple2` 作为键(一个整数和一个浮点数)。 如果你想“进入”到 `Tuple2` 的内部,你必须使用如下所述的字段表达式键。
-
-### 使用字段表达式定义键
-{:.no_toc}
-
-可以使用基于字符串的字段表达式来引用嵌套字段,并定义用于分组、排序、join 或 coGrouping 的键。
-
-字段表达式可以很容易地选取复合(嵌套)类型中的字段,例如 [Tuple](#tuples-and-case-classes) 和 [POJO](#pojos) 类型。
-
-<div class="codetabs" markdown="1">
-<div data-lang="java" markdown="1">
-
-下例中,我们有一个包含“word”和“count”两个字段的 POJO:`WC`。要用 `word` 字段分组,我们只需要把它的名字传给 `keyBy()` 函数即可。
-{% highlight java %}
-// 普通的 POJO(简单的 Java 对象)
-public class WC {
-  public String word;
-  public int count;
-}
-DataStream<WC> words = // [...]
-DataStream<WC> wordCounts = words.keyBy("word").window(/*指定窗口*/);
-{% endhighlight %}
-
-**字段表达式语法**:
-
-- 根据字段名称选择 POJO 的字段。例如 `“user”` 就是指 POJO 类型的“user”字段。
-
-- 根据字段名称或 0 开始的字段索引选择 Tuple 的字段。例如 `“f0”` 和 `“5”` 分别指 Java Tuple 类型的第一个和第六个字段。
-
-- 可以选择 POJO 和 Tuple 的嵌套字段。 例如,一个 POJO 类型有一个“user”字段还是一个 POJO 类型,那么 `“user.zip”` 即指这个“user”字段的“zip”字段。任意嵌套和混合的 POJO 和 Tuple都是支持的,例如 `“f1.user.zip”` 或 `“user.f3.1.zip”`。
-
-- 可以使用 `"*"` 通配符表达式选择完整的类型。这也适用于非 Tuple 或 POJO 类型。
-
-**字段表达式示例**:
-
-{% highlight java %}
-public static class WC {
-  public ComplexNestedClass complex; //嵌套的 POJO
-  private int count;
-  // 私有字段(count)的 getter 和 setter
-  public int getCount() {
-    return count;
-  }
-  public void setCount(int c) {
-    this.count = c;
-  }
-}
-public static class ComplexNestedClass {
-  public Integer someNumber;
-  public float someFloat;
-  public Tuple3<Long, Long, String> word;
-  public IntWritable hadoopCitizen;
-}
-{% endhighlight %}
-
-这些字段表达式对于以上代码示例都是合法的:
-
-- `"count"`:`WC` 类的 count 字段。
-
-- `"complex"`:递归选择 POJO 类型 `ComplexNestedClass` 的 complex 字段的全部字段。
-
-- `"complex.word.f2"`:选择嵌套 `Tuple3` 类型的最后一个字段。
-
-- `"complex.hadoopCitizen"`:选择 hadoop 的 `IntWritable` 类型。
-
-</div>
-<div data-lang="scala" markdown="1">
-
-下例中,我们有一个包含“word”和“count”两个字段的 POJO:`WC`。要用 `word` 字段分组,我们只需要把它的名字传给 `keyBy()` 函数即可。
-{% highlight scala %}
-// 普通的 POJO(简单的 Java 对象)
-class WC(var word: String, var count: Int) {
-  def this() { this("", 0L) }
-}
-val words: DataStream[WC] = // [...]
-val wordCounts = words.keyBy("word").window(/*指定窗口*/)
-
-// 或者,代码少一点的 case class
-case class WC(word: String, count: Int)
-val words: DataStream[WC] = // [...]
-val wordCounts = words.keyBy("word").window(/*指定窗口*/)
-{% endhighlight %}
-
-**字段表达式语法**:
-
-- 根据字段名称选择 POJO 的字段。例如 `“user”` 就是指 POJO 类型的“user”字段。
-
-- 根据 1 开始的字段名称或 0 开始的字段索引选择 Tuple 的字段。例如 `“_1”` 和 `“5”` 分别指 Java Tuple 类型的第一个和第六个字段。
-
-- 可以选择 POJO 和 Tuple 的嵌套字段。 例如,一个 POJO 类型有一个“user”字段还是一个 POJO 类型,那么 `“user.zip”` 即指这个“user”字段的“zip”字段。任意嵌套和混合的 POJO 和 Tuple都是支持的,例如 `“_2.user.zip”` 或 `“user._4.1.zip”`。
-
-- 可以使用 `"*"` 通配符表达式选择完整的类型。这也适用于非 Tuple 或 POJO 类型。
-
-**字段表达式示例**:
-
-{% highlight scala %}
-class WC(var complex: ComplexNestedClass, var count: Int) {
-  def this() { this(null, 0) }
-}
-
-class ComplexNestedClass(
-    var someNumber: Int,
-    someFloat: Float,
-    word: (Long, Long, String),
-    hadoopCitizen: IntWritable) {
-  def this() { this(0, 0, (0, 0, ""), new IntWritable(0)) }
-}
-{% endhighlight %}
-
-这些字段表达式对于以上代码示例都是合法的:
-
-- `"count"`:`WC` 类的 count 字段。
-
-- `"complex"`:递归选择 POJO 类型 `ComplexNestedClass` 的 complex 字段的全部字段。
-
-- `"complex.word._3"`:选择嵌套 `Tuple3` 类型的最后一个字段。
-
-- `"complex.hadoopCitizen"`:选择 hadoop 的 `IntWritable` 类型。
-
-</div>
-</div>
-
-### 使用键选择器函数定义键
-{:.no_toc}
-
-定义键的另一种方法是“键选择器”函数。键选择器函数将单个元素作为输入并返回元素的键。键可以是任意类型,并且可以由确定性计算得出。
-
-下例展示了一个简单返回对象字段的键选择器函数:
-
-<div class="codetabs" markdown="1">
-<div data-lang="java" markdown="1">
-{% highlight java %}
-// 普通的 POJO
-public class WC {public String word; public int count;}
-DataStream<WC> words = // [...]
-KeyedStream<WC> keyed = words
-  .keyBy(new KeySelector<WC, String>() {
-     public String getKey(WC wc) { return wc.word; }
-   });
-{% endhighlight %}
-
-</div>
-<div data-lang="scala" markdown="1">
-{% highlight scala %}
-// 普通的 case class
-case class WC(word: String, count: Int)
-val words: DataStream[WC] = // [...]
-val keyed = words.keyBy( _.word )
-{% endhighlight %}
-</div>
-</div>
-
-{% top %}
-
-指定转换函数
---------------------------
-
-大多数转换操作需要用户定义函数。本节列举了指定它们的不同方法。
-
-<div class="codetabs" markdown="1">
-<div data-lang="java" markdown="1">
-
-#### 实现接口
-
-最基本的方法是实现一个已提供的接口:
-
-{% highlight java %}
-class MyMapFunction implements MapFunction<String, Integer> {
-  public Integer map(String value) { return Integer.parseInt(value); }
-};
-data.map(new MyMapFunction());
-{% endhighlight %}
-
-#### 匿名类
-
-可以将函数作为匿名类传递:
-{% highlight java %}
-data.map(new MapFunction<String, Integer> () {
-  public Integer map(String value) { return Integer.parseInt(value); }
-});
-{% endhighlight %}
-
-#### Java 8 Lambda 表达式
-
-Flink 的 Java API 也支持 Java 8 Lambda 表达式。
-
-{% highlight java %}
-data.filter(s -> s.startsWith("http://"));
-{% endhighlight %}
-
-{% highlight java %}
-data.reduce((i1,i2) -> i1 + i2);
-{% endhighlight %}
-
-#### 富函数
-
-所有需要用户定义函数的转换操作都可以将*富*函数作为参数。例如,对于
-
-{% highlight java %}
-class MyMapFunction implements MapFunction<String, Integer> {
-  public Integer map(String value) { return Integer.parseInt(value); }
-};
-{% endhighlight %}
-
-你可以替换成
-
-{% highlight java %}
-class MyMapFunction extends RichMapFunction<String, Integer> {
-  public Integer map(String value) { return Integer.parseInt(value); }
-};
-{% endhighlight %}
-
-并像往常一样将函数传递给 `map` 转换操作:
-
-{% highlight java %}
-data.map(new MyMapFunction());
-{% endhighlight %}
-
-富函数也可以被定义为匿名类:
-{% highlight java %}
-data.map (new RichMapFunction<String, Integer>() {
-  public Integer map(String value) { return Integer.parseInt(value); }
-});
-{% endhighlight %}
-
-</div>
-<div data-lang="scala" markdown="1">
-
-
-#### Lambda 函数
-
-正如前面的例子中所见,所有操作都接受 lambda 函数来描述操作:
-{% highlight scala %}
-val data: DataSet[String] = // [...]
-data.filter { _.startsWith("http://") }
-{% endhighlight %}
-
-{% highlight scala %}
-val data: DataSet[Int] = // [...]
-data.reduce { (i1,i2) => i1 + i2 }
-// 或者
-data.reduce { _ + _ }
-{% endhighlight %}
-
-#### 富函数
-
-所有需要用户定义函数的转换操作都可以将*富*函数作为参数。例如,对于
-
-{% highlight scala %}
-data.map { x => x.toInt }
-{% endhighlight %}
-
-你可以替换成
-
-{% highlight scala %}
-class MyMapFunction extends RichMapFunction[String, Int] {
-  def map(in: String):Int = { in.toInt }
-};
-{% endhighlight %}
-
-并像往常一样将函数传递给 `map` 转换操作:
-
-{% highlight scala %}
-data.map(new MyMapFunction())
-{% endhighlight %}
-
-富函数也可以被定义为匿名类:
-{% highlight scala %}
-data.map (new RichMapFunction[String, Int] {
-  def map(in: String):Int = { in.toInt }
-})
-{% endhighlight %}
-</div>
-
-</div>
-
-富函数为用户定义函数(map、reduce 等)额外提供了 4 个方法: `open`、`close`、`getRuntimeContext` 和 `setRuntimeContext`。这些方法有助于向函数传参(请参阅 [向函数传递参数]({{ site.baseurl }}/zh/dev/batch/index.html#passing-parameters-to-functions))、
-创建和终止本地状态、访问广播变量(请参阅
-[广播变量]({{ site.baseurl }}/zh/dev/batch/index.html#broadcast-variables))、访问诸如累加器和计数器等运行时信息(请参阅
-[累加器和计数器](#accumulators--counters))和迭代信息(请参阅 [迭代]({{ site.baseurl }}/zh/dev/batch/iterations.html))。
-
-{% top %}
-
-支持的数据类型
---------------------
-
-Flink 对于 DataSet 或 DataStream 中可以包含的元素类型做了一些限制。这么做是为了使系统能够分析类型以确定有效的执行策略。
-
-有七种不同的数据类型:
-
-1. **Java Tuple** 和 **Scala Case Class**
-2. **Java POJO**
-3. **基本数据类型**
-4. **常规的类**
-5. **值**
-6. **Hadoop Writable**
-7. **特殊类型**
-
-#### Tuple 和 Case Class
-
-<div class="codetabs" markdown="1">
-<div data-lang="java" markdown="1">
-
-Tuple 是复合类型,包含固定数量的各种类型的字段。
-Java API 提供了从 `Tuple1` 到 `Tuple25` 的类。 Tuple 的每一个字段可以是任意 Flink 类型,包括 Tuple,即嵌套的 Tuple。Tuple 的字段可以通过字段名称如 `tuple.f4` 直接访问,也可以使用通常的 getter 方法 `tuple.getField(int position)`。字段索引从 0 开始。请注意,这与 Scala Tuple 形成鲜明对比,但与 Java 的常规索引更为一致。
-
-{% highlight java %}
-DataStream<Tuple2<String, Integer>> wordCounts = env.fromElements(
-    new Tuple2<String, Integer>("hello", 1),
-    new Tuple2<String, Integer>("world", 2));
-
-wordCounts.map(new MapFunction<Tuple2<String, Integer>, Integer>() {
-    @Override
-    public Integer map(Tuple2<String, Integer> value) throws Exception {
-        return value.f1;
-    }
-});
-
-wordCounts.keyBy(0); // .keyBy("f0") 也可以
-
-
-{% endhighlight %}
-
-</div>
-<div data-lang="scala" markdown="1">
-
-Scala Case Class(以及作为 Case Class 的特例的 Scala Tuple)是复合类型,包含固定数量的各种类型的字段。Tuple 的字段从 1 开始索引。例如 `_1` 指第一个字段。Case Class 字段用名称索引。
-
-{% highlight scala %}
-case class WordCount(word: String, count: Int)
-val input = env.fromElements(
-    WordCount("hello", 1),
-    WordCount("world", 2)) // Case Class 数据集
-
-input.keyBy("word")// 以字段表达式“word”为键
-
-val input2 = env.fromElements(("hello", 1), ("world", 2)) // Tuple2 数据集
-
-input2.keyBy(0, 1) // 以第 0 和第 1 个字段为键
-{% endhighlight %}
-
-</div>
-</div>
-
-#### POJO
-
-Flink 将满足如下条件的 Java 和 Scala 的类作为特殊的 POJO 数据类型处理:
-
-- 类必须是公有的。
-
-- 它必须有一个公有的无参构造器(默认构造器)。
-
-- 所有的字段要么是公有的要么必须可以通过 getter 和 setter 函数访问。例如一个名为 `foo` 的字段,它的 getter 和 setter 方法必须命名为 `getFoo()` 和 `setFoo()`。
-
-- 字段的类型必须被已注册的序列化程序所支持。
-
-POJO 通常用 `PojoTypeInfo` 表示,并使用 `PojoSerializer`([Kryo](https://github.com/EsotericSoftware/kryo) 作为可配置的备用序列化器)序列化。
-例外情况是 POJO 是 Avro 类型(Avro 指定的记录)或作为“Avro 反射类型”生成时。
-在这种情况下 POJO 由 `AvroTypeInfo` 表示,并且由 `AvroSerializer` 序列化。
-如果需要,你可以注册自己的序列化器;更多信息请参阅 [序列化](https://ci.apache.org/projects/flink/flink-docs-master/zh/dev/types_serialization.html)。
-
-Flink 分析 POJO 类型的结构,也就是说,它会推断出 POJO 的字段。因此,POJO 类型比常规类型更易于使用。此外,Flink 可以比一般类型更高效地处理 POJO。
-
-下例展示了一个拥有两个公有字段的简单 POJO。
-
-<div class="codetabs" markdown="1">
-<div data-lang="java" markdown="1">
-{% highlight java %}
-public class WordWithCount {
-
-    public String word;
-    public int count;
-
-    public WordWithCount() {}
-
-    public WordWithCount(String word, int count) {
-        this.word = word;
-        this.count = count;
-    }
-}
-
-DataStream<WordWithCount> wordCounts = env.fromElements(
-    new WordWithCount("hello", 1),
-    new WordWithCount("world", 2));
-
-wordCounts.keyBy("word"); // 以字段表达式“word”为键
-
-{% endhighlight %}
-</div>
-<div data-lang="scala" markdown="1">
-{% highlight scala %}
-class WordWithCount(var word: String, var count: Int) {
-    def this() {
-      this(null, -1)
-    }
-}
-
-val input = env.fromElements(
-    new WordWithCount("hello", 1),
-    new WordWithCount("world", 2)) // Case Class 数据集
-
-input.keyBy("word")// 以字段表达式“word”为键
-
-{% endhighlight %}
-</div>
-</div>
-
-#### 基本数据类型
-
-Flink 支持所有 Java 和 Scala 的基本数据类型如 `Integer`、 `String`、和 `Double`。
-
-#### 常规的类
-
-Flink 支持大部分 Java 和 Scala 的类(API 和自定义)。
-除了包含无法序列化的字段的类,如文件指针,I / O流或其他本地资源。遵循 Java Beans 约定的类通常可以很好地工作。
-
-Flink 对于所有未识别为 POJO 类型的类(请参阅上面对于的 POJO 要求)都作为常规类处理。
-Flink 将这些数据类型视为黑盒,并且无法访问其内容(为了诸如高效排序等目的)。常规类使用 [Kryo](https://github.com/EsotericSoftware/kryo) 序列化框架进行序列化和反序列化。
-
-#### 值
-
-*值* 类型手工描述其序列化和反序列化。它们不是通过通用序列化框架,而是通过实现 `org.apache.flinktypes.Value` 接口的 `read` 和 `write` 方法来为这些操作提供自定义编码。当通用序列化效率非常低时,使用值类型是合理的。例如,用数组实现稀疏向量。已知数组大部分元素为零,就可以对非零元素使用特殊编码,而通用序列化只会简单地将所有数组元素都写入。
-
-`org.apache.flinktypes.CopyableValue` 接口以类似的方式支持内部手工克隆逻辑。
-
-Flink 有与基本数据类型对应的预定义值类型。(`ByteValue`、
-`ShortValue`、 `IntValue`、`LongValue`、 `FloatValue`、`DoubleValue`、 `StringValue`、`CharValue`、
-`BooleanValue`)。这些值类型充当基本数据类型的可变变体:它们的值可以改变,允许程序员重用对象并减轻垃圾回收器的压力。
-
-
-#### Hadoop Writable
-
-可以使用实现了 `org.apache.hadoop.Writable` 接口的类型。它们会使用 `write()` 和 `readFields()` 方法中定义的序列化逻辑。
-
-#### 特殊类型
-
-可以使用特殊类型,包括 Scala 的 `Either`、`Option` 和 `Try`。
-Java API 有对 `Either` 的自定义实现。
-类似于 Scala 的 `Either`,它表示一个具有 *Left* 或 *Right* 两种可能类型的值。
-`Either` 可用于错误处理或需要输出两种不同类型记录的算子。
-
-#### 类型擦除和类型推断
-
-*请注意: 本节只与 Java 有关。*
-
-Java 编译器在编译后抛弃了大量泛型类型信息。这在 Java 中被称作 *类型擦除*。它意味着在运行时,对象的实例已经不知道它的泛型类型了。例如 `DataStream<String>` 和 `DataStream<Long>` 的实例在 JVM 看来是一样的。
-
-Flink 在准备程序执行时(程序的 main 方法被调用时)需要类型信息。Flink Java API 尝试重建以各种方式丢弃的类型信息,并将其显式存储在数据集和算子中。你可以通过 `DataStream.getType()` 获取数据类型。此方法返回 `TypeInformation` 的一个实例,这是 Flink 内部表示类型的方式。
-
-类型推断有其局限性,在某些情况下需要程序员的“配合”。
-这方面的示例是从集合创建数据集的方法,例如 `ExecutionEnvironment.fromCollection()`,你可以在这里传递一个描述类型的参数。 像 `MapFunction<I, O>` 这样的泛型函数同样可能需要额外的类型信息。
-
-可以通过输入格式和函数实现 {% gh_link /flink-core/src/main/java/org/apache/flink/api/java/typeutils/ResultTypeQueryable.java "ResultTypeQueryable" %}
-接口,以明确告知 API 其返回类型。 被调函数的*输入类型*通常可以通过先前操作的结果类型来推断。
-
-{% top %}
-
-累加器和计数器
----------------------------
-
-累加器简单地由 **加法操作** 和 **最终累加结果**构成,可在作业结束后使用。
-
-最简单的累加器是一个 **计数器**:你可以使用
-```Accumulator.add(V value)``` 方法递增它。作业结束时 Flink 会合计(合并)所有的部分结果并发送给客户端。累加器在 debug 或者你想快速了解数据的时候非常有用。
-
-Flink 目前有如下 **内置累加器**。它们每一个都实现了
-{% gh_link /flink-core/src/main/java/org/apache/flink/api/common/accumulators/Accumulator.java "Accumulator" %}
-接口。
-
-- {% gh_link /flink-core/src/main/java/org/apache/flink/api/common/accumulators/IntCounter.java "__IntCounter__" %},
-  {% gh_link /flink-core/src/main/java/org/apache/flink/api/common/accumulators/LongCounter.java "__LongCounter__" %}
-  和 {% gh_link /flink-core/src/main/java/org/apache/flink/api/common/accumulators/DoubleCounter.java "__DoubleCounter__" %}:
-  有关使用计数器的示例,请参见下文。
-- {% gh_link /flink-core/src/main/java/org/apache/flink/api/common/accumulators/Histogram.java "__Histogram__" %}:
-  离散数量桶的直方图实现。在内部,它只是一个从整数到整数的映射。你可以用它计算值的分布,例如一个词频统计程序中每行词频的分布。
-
-__如何使用累加器:__
-
-首先你必须在要使用它的用户定义转换函数中创建累加器对象(下例为计数器)。
-
-{% highlight java %}
-private IntCounter numLines = new IntCounter();
-{% endhighlight %}
-
-其次,你必须注册累加器对象,通常在富函数的 ```open()``` 方法中。在这里你还可以定义名称。
-
-{% highlight java %}
-getRuntimeContext().addAccumulator("num-lines", this.numLines);
-{% endhighlight %}
-
-你现在可以在算子函数中的任何位置使用累加器,包括 ```open()``` 和
-```close()``` 方法。
-
-{% highlight java %}
-this.numLines.add(1);
-{% endhighlight %}
-
-总体结果将存储在 ```JobExecutionResult``` 对象中,该对象是从执行环境的 `execute()` 方法返回的
-(目前这仅在执行等待作业完成时才有效)。
-
-{% highlight java %}
-myJobExecutionResult.getAccumulatorResult("num-lines")
-{% endhighlight %}
-
-每个作业的所有累加器共享一个命名空间。 这样你就可以在作业的不同算子函数中使用相同的累加器。Flink 会在内部合并所有同名累加器。
-
-关于累加器和迭代请注意: 目前,累加器的结果只有在整个作业结束以后才可用。我们还计划实现在下一次迭代中使前一次迭代的结果可用。你可以使用
-{% gh_link /flink-java/src/main/java/org/apache/flink/api/java/operators/IterativeDataSet.java#L98 "Aggregators" %}
-计算每次迭代的统计信息,并根据这些信息确定迭代何时终止。
-
-__自定义累加器:__
-
-要实现你自己的累加器,只需编写累加器接口的实现即可。如果你认为 Flink 应该提供你的自定义累加器,请创建 pull request。
-
-你可以选择实现
-{% gh_link /flink-core/src/main/java/org/apache/flink/api/common/accumulators/Accumulator.java "Accumulator" %}
-或者 {% gh_link /flink-core/src/main/java/org/apache/flink/api/common/accumulators/SimpleAccumulator.java "SimpleAccumulator" %}。
-
-```Accumulator<V,R>``` 最灵活:它为要递增的值定义类型 ```V```,为最终结果定义类型 ```R```。例如对于 histogram,```V``` 是数字而 ```R``` 是 histogram。```SimpleAccumulator``` 则适用于两个类型相同的情况,例如计数器。
-
-{% top %}
diff --git a/docs/dev/batch/connectors.md b/docs/dev/batch/connectors.md
index a66ba9d..41f3c28 100644
--- a/docs/dev/batch/connectors.md
+++ b/docs/dev/batch/connectors.md
@@ -186,7 +186,7 @@ This [GitHub repository documents how to use MongoDB with Apache Flink (starting
 ## Hive Connector
 
 Starting from 1.9.0, Apache Flink provides Hive connector to access Apache Hive tables. [HiveCatalog]({{ site.baseurl }}/dev/table/catalogs.html#hivecatalog) is required in order to use the Hive connector.
-After HiveCatalog is setup, please refer to [Reading & Writing Hive Tables]({{ site.baseurl }}/dev/table/hive/read_write_hive.html) for the usage of the Hive connector and its limitations.
+After HiveCatalog is setup, please refer to [Reading & Writing Hive Tables]({{ site.baseurl }}/dev/table/hive/hive_read_write.html) for the usage of the Hive connector and its limitations.
 Same as HiveCatalog, the officially supported Apache Hive versions for Hive connector are 2.3.4 and 1.2.1.
 
 {% top %}
diff --git a/docs/dev/batch/connectors.zh.md b/docs/dev/batch/connectors.zh.md
index 81bdc9f..9fe828b 100644
--- a/docs/dev/batch/connectors.zh.md
+++ b/docs/dev/batch/connectors.zh.md
@@ -186,7 +186,7 @@ This [GitHub repository documents how to use MongoDB with Apache Flink (starting
 ## Hive Connector
 
 Starting from 1.9.0, Apache Flink provides Hive connector to access Apache Hive tables. [HiveCatalog]({{ site.baseurl }}/zh/dev/table/catalogs.html#hivecatalog) is required in order to use the Hive connector.
-After HiveCatalog is setup, please refer to [Reading & Writing Hive Tables]({{ site.baseurl }}/zh/dev/table/hive/read_write_hive.html) for the usage of the Hive connector and its limitations.
+After HiveCatalog is setup, please refer to [Reading & Writing Hive Tables]({{ site.baseurl }}/zh/dev/table/hive/hive_read_write.html) for the usage of the Hive connector and its limitations.
 Same as HiveCatalog, the officially supported Apache Hive versions for Hive connector are 2.3.4 and 1.2.1.
 
 {% top %}
diff --git a/docs/dev/batch/index.md b/docs/dev/batch/index.md
index 7a646a6..5190005 100644
--- a/docs/dev/batch/index.md
+++ b/docs/dev/batch/index.md
@@ -50,7 +50,7 @@ Example Program
 
 The following program is a complete, working example of WordCount. You can copy &amp; paste the code
 to run it locally. You only have to include the correct Flink's library into your project
-(see Section [Linking with Flink]({{ site.baseurl }}/dev/projectsetup/dependencies.html)) and specify the imports. Then you are ready
+(see Section [Linking with Flink]({{ site.baseurl }}/dev/project-configuration.html)) and specify the imports. Then you are ready
 to go!
 
 <div class="codetabs" markdown="1">
diff --git a/docs/dev/batch/index.zh.md b/docs/dev/batch/index.zh.md
index e3f78bb..bbb1173 100644
--- a/docs/dev/batch/index.zh.md
+++ b/docs/dev/batch/index.zh.md
@@ -50,7 +50,7 @@ Example Program
 
 The following program is a complete, working example of WordCount. You can copy &amp; paste the code
 to run it locally. You only have to include the correct Flink's library into your project
-(see Section [Linking with Flink]({{ site.baseurl }}/dev/projectsetup/dependencies.html)) and specify the imports. Then you are ready
+(see Section [Linking with Flink]({{ site.baseurl }}/dev/project-configuration.html)) and specify the imports. Then you are ready
 to go!
 
 <div class="codetabs" markdown="1">
diff --git a/docs/dev/connectors/cassandra.md b/docs/dev/connectors/cassandra.md
index 002d388..6420799 100644
--- a/docs/dev/connectors/cassandra.md
+++ b/docs/dev/connectors/cassandra.md
@@ -43,7 +43,7 @@ To use this connector, add the following dependency to your project:
 </dependency>
 {% endhighlight %}
 
-Note that the streaming connectors are currently __NOT__ part of the binary distribution. See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/projectsetup/dependencies.html).
+Note that the streaming connectors are currently __NOT__ part of the binary distribution. See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/project-configuration.html).
 
 ## Installing Apache Cassandra
 There are multiple ways to bring up a Cassandra instance on local machine:
diff --git a/docs/dev/connectors/cassandra.zh.md b/docs/dev/connectors/cassandra.zh.md
index a7b503b..c10ea49 100644
--- a/docs/dev/connectors/cassandra.zh.md
+++ b/docs/dev/connectors/cassandra.zh.md
@@ -43,7 +43,7 @@ To use this connector, add the following dependency to your project:
 </dependency>
 {% endhighlight %}
 
-Note that the streaming connectors are currently __NOT__ part of the binary distribution. See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/projectsetup/dependencies.html).
+Note that the streaming connectors are currently __NOT__ part of the binary distribution. See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/project-configuration.html).
 
 ## Installing Apache Cassandra
 There are multiple ways to bring up a Cassandra instance on local machine:
diff --git a/docs/dev/connectors/elasticsearch.md b/docs/dev/connectors/elasticsearch.md
index 9fd808e..b613d0b 100644
--- a/docs/dev/connectors/elasticsearch.md
+++ b/docs/dev/connectors/elasticsearch.md
@@ -59,7 +59,7 @@ of the Elasticsearch installation:
 </table>
 
 Note that the streaming connectors are currently not part of the binary
-distribution. See [here]({{site.baseurl}}/dev/projectsetup/dependencies.html) for information
+distribution. See [here]({{site.baseurl}}/dev/project-configuration.html) for information
 about how to package the program with the libraries for cluster execution.
 
 ## Installing Elasticsearch
@@ -464,7 +464,7 @@ More information about Elasticsearch can be found [here](https://elastic.co).
 
 For the execution of your Flink program, it is recommended to build a
 so-called uber-jar (executable jar) containing all your dependencies
-(see [here]({{site.baseurl}}/dev/projectsetup/dependencies.html) for further information).
+(see [here]({{site.baseurl}}/dev/project-configuration.html) for further information).
 
 Alternatively, you can put the connector's jar file into Flink's `lib/` folder to make it available
 system-wide, i.e. for all job being run.
diff --git a/docs/dev/connectors/elasticsearch.zh.md b/docs/dev/connectors/elasticsearch.zh.md
index e39603b..e29c920 100644
--- a/docs/dev/connectors/elasticsearch.zh.md
+++ b/docs/dev/connectors/elasticsearch.zh.md
@@ -59,7 +59,7 @@ of the Elasticsearch installation:
 </table>
 
 Note that the streaming connectors are currently not part of the binary
-distribution. See [here]({{site.baseurl}}/dev/projectsetup/dependencies.html) for information
+distribution. See [here]({{site.baseurl}}/dev/project-configuration.html) for information
 about how to package the program with the libraries for cluster execution.
 
 ## Installing Elasticsearch
@@ -464,7 +464,7 @@ More information about Elasticsearch can be found [here](https://elastic.co).
 
 For the execution of your Flink program, it is recommended to build a
 so-called uber-jar (executable jar) containing all your dependencies
-(see [here]({{site.baseurl}}/dev/projectsetup/dependencies.html) for further information).
+(see [here]({{site.baseurl}}/dev/project-configuration.html) for further information).
 
 Alternatively, you can put the connector's jar file into Flink's `lib/` folder to make it available
 system-wide, i.e. for all job being run.
diff --git a/docs/dev/connectors/filesystem_sink.md b/docs/dev/connectors/filesystem_sink.md
index f24478f..f58ebb3 100644
--- a/docs/dev/connectors/filesystem_sink.md
+++ b/docs/dev/connectors/filesystem_sink.md
@@ -42,7 +42,7 @@ following dependency to your project:
 
 Note that the streaming connectors are currently not part of the binary
 distribution. See
-[here]({{site.baseurl}}/dev/projectsetup/dependencies.html)
+[here]({{site.baseurl}}/dev/project-configuration.html)
 for information about how to package the program with the libraries for
 cluster execution.
 
diff --git a/docs/dev/connectors/filesystem_sink.zh.md b/docs/dev/connectors/filesystem_sink.zh.md
index adb9f8b..9ae22fa 100644
--- a/docs/dev/connectors/filesystem_sink.zh.md
+++ b/docs/dev/connectors/filesystem_sink.zh.md
@@ -39,7 +39,7 @@ under the License.
 </dependency>
 {% endhighlight %}
 
-注意连接器目前还不是二进制发行版的一部分,添加依赖、打包配置以及集群运行信息请参考 [这里]({{site.baseurl}}/zh/getting-started/project-setup/dependencies.html)。
+注意连接器目前还不是二进制发行版的一部分,添加依赖、打包配置以及集群运行信息请参考 [这里]({{site.baseurl}}/zh/dev/project-configuration.html)。
 
 #### 分桶文件 Sink
 
diff --git a/docs/dev/connectors/jdbc.md b/docs/dev/connectors/jdbc.md
index 980e50e..d3fc286 100644
--- a/docs/dev/connectors/jdbc.md
+++ b/docs/dev/connectors/jdbc.md
@@ -38,7 +38,7 @@ To use it, add the following dependency to your project (along with your JDBC-dr
 </dependency>
 {% endhighlight %}
 
-Note that the streaming connectors are currently __NOT__ part of the binary distribution. See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/projectsetup/dependencies.html).
+Note that the streaming connectors are currently __NOT__ part of the binary distribution. See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/project-configuration.html).
 
 Created JDBC sink provides at-least-once guarantee.
 Effectively exactly-once can be achived using upsert statements or idempotent updates.
diff --git a/docs/dev/connectors/jdbc.zh.md b/docs/dev/connectors/jdbc.zh.md
index 980e50e..d3fc286 100644
--- a/docs/dev/connectors/jdbc.zh.md
+++ b/docs/dev/connectors/jdbc.zh.md
@@ -38,7 +38,7 @@ To use it, add the following dependency to your project (along with your JDBC-dr
 </dependency>
 {% endhighlight %}
 
-Note that the streaming connectors are currently __NOT__ part of the binary distribution. See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/projectsetup/dependencies.html).
+Note that the streaming connectors are currently __NOT__ part of the binary distribution. See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/project-configuration.html).
 
 Created JDBC sink provides at-least-once guarantee.
 Effectively exactly-once can be achived using upsert statements or idempotent updates.
diff --git a/docs/dev/connectors/kafka.md b/docs/dev/connectors/kafka.md
index 27f18f7..f2e722f 100644
--- a/docs/dev/connectors/kafka.md
+++ b/docs/dev/connectors/kafka.md
@@ -70,7 +70,7 @@ For details on Kafka compatibility, please refer to the official [Kafka document
 </div>
 
 Flink's streaming connectors are not currently part of the binary distribution.
-See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/projectsetup/dependencies.html).
+See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/project-configuration.html).
 
 ## Kafka Consumer
 
diff --git a/docs/dev/connectors/kafka.zh.md b/docs/dev/connectors/kafka.zh.md
index bf2ebbe..d2686a2 100644
--- a/docs/dev/connectors/kafka.zh.md
+++ b/docs/dev/connectors/kafka.zh.md
@@ -84,7 +84,7 @@ Flink 提供了专门的 Kafka 连接器,向 Kafka topic 中读取或者写入
 {% endhighlight %}
 
 请注意:目前流连接器还不是二进制分发的一部分。
-[在此处]({{ site.baseurl }}/zh/getting-started/project-setup/dependencies.html)可以了解到如何链接它们以实现在集群中执行。
+[在此处]({{ site.baseurl }}/zh/dev/project-configuration.html)可以了解到如何链接它们以实现在集群中执行。
 
 ## 安装 Apache Kafka
 
diff --git a/docs/dev/connectors/nifi.md b/docs/dev/connectors/nifi.md
index 97fd831b..7738a40 100644
--- a/docs/dev/connectors/nifi.md
+++ b/docs/dev/connectors/nifi.md
@@ -37,7 +37,7 @@ following dependency to your project:
 
 Note that the streaming connectors are currently not part of the binary
 distribution. See
-[here]({{site.baseurl}}/dev/projectsetup/dependencies.html)
+[here]({{site.baseurl}}/dev/project-configuration.html)
 for information about how to package the program with the libraries for
 cluster execution.
 
diff --git a/docs/dev/connectors/nifi.zh.md b/docs/dev/connectors/nifi.zh.md
index 36ac3f3..c34c146 100644
--- a/docs/dev/connectors/nifi.zh.md
+++ b/docs/dev/connectors/nifi.zh.md
@@ -34,7 +34,7 @@ under the License.
 </dependency>
 {% endhighlight %}
 
-注意这些连接器目前还没有包含在二进制发行版中。添加依赖、打包配置以及集群运行的相关信息请参考 [这里]({{site.baseurl}}/zh/getting-started/project-setup/dependencies.html)。
+注意这些连接器目前还没有包含在二进制发行版中。添加依赖、打包配置以及集群运行的相关信息请参考 [这里]({{site.baseurl}}/zh/dev/project-configuration.html)。
 
 #### 安装 Apache NiFi
 
diff --git a/docs/dev/connectors/pubsub.md b/docs/dev/connectors/pubsub.md
index 6055d9f..c464f48 100644
--- a/docs/dev/connectors/pubsub.md
+++ b/docs/dev/connectors/pubsub.md
@@ -41,7 +41,7 @@ following dependency to your project:
 
 Note that the streaming connectors are currently not part of the binary
 distribution. See
-[here]({{ site.baseurl }}/dev/projectsetup/dependencies.html)
+[here]({{ site.baseurl }}/dev/project-configuration.html)
 for information about how to package the program with the libraries for
 cluster execution.
 
diff --git a/docs/dev/connectors/pubsub.zh.md b/docs/dev/connectors/pubsub.zh.md
index 93cfa96..6fb9bd5 100644
--- a/docs/dev/connectors/pubsub.zh.md
+++ b/docs/dev/connectors/pubsub.zh.md
@@ -37,7 +37,7 @@ under the License.
 <b>注意</b>:此连接器最近才加到 Flink 里,还未接受广泛测试。
 </p>
 
-注意连接器目前还不是二进制发行版的一部分,添加依赖、打包配置以及集群运行信息请参考[这里]({{ site.baseurl }}/zh/getting-started/project-setup/dependencies.html)
+注意连接器目前还不是二进制发行版的一部分,添加依赖、打包配置以及集群运行信息请参考[这里]({{ site.baseurl }}/zh/dev/project-configuration.html)
 
 ## Consuming or Producing PubSubMessages
 
diff --git a/docs/dev/connectors/rabbitmq.md b/docs/dev/connectors/rabbitmq.md
index a3a56a8..819979e 100644
--- a/docs/dev/connectors/rabbitmq.md
+++ b/docs/dev/connectors/rabbitmq.md
@@ -47,7 +47,7 @@ This connector provides access to data streams from [RabbitMQ](http://www.rabbit
 </dependency>
 {% endhighlight %}
 
-Note that the streaming connectors are currently not part of the binary distribution. See linking with them for cluster execution [here]({{site.baseurl}}/dev/projectsetup/dependencies.html).
+Note that the streaming connectors are currently not part of the binary distribution. See linking with them for cluster execution [here]({{site.baseurl}}/dev/project-configuration.html).
 
 ### Installing RabbitMQ
 Follow the instructions from the [RabbitMQ download page](http://www.rabbitmq.com/download.html). After the installation the server automatically starts, and the application connecting to RabbitMQ can be launched.
diff --git a/docs/dev/connectors/rabbitmq.zh.md b/docs/dev/connectors/rabbitmq.zh.md
index 26b16ba..b9889f5 100644
--- a/docs/dev/connectors/rabbitmq.zh.md
+++ b/docs/dev/connectors/rabbitmq.zh.md
@@ -43,7 +43,7 @@ Flink 自身既没有复用 "RabbitMQ AMQP Java Client" 的代码,也没有将
 </dependency>
 {% endhighlight %}
 
-注意连接器现在没有包含在二进制发行版中。集群执行的相关信息请参考 [这里]({{site.baseurl}}/zh/getting-started/project-setup/dependencies.html).
+注意连接器现在没有包含在二进制发行版中。集群执行的相关信息请参考 [这里]({{site.baseurl}}/zh/dev/project-configuration.html).
 
 ### 安装 RabbitMQ
 安装 RabbitMQ 请参考 [RabbitMQ 下载页面](http://www.rabbitmq.com/download.html)。安装完成之后,服务会自动拉起,应用程序就可以尝试连接到 RabbitMQ 了。
diff --git a/docs/dev/connectors/twitter.md b/docs/dev/connectors/twitter.md
index 9ca394b..d2e76d8 100644
--- a/docs/dev/connectors/twitter.md
+++ b/docs/dev/connectors/twitter.md
@@ -36,7 +36,7 @@ To use this connector, add the following dependency to your project:
 {% endhighlight %}
 
 Note that the streaming connectors are currently not part of the binary distribution.
-See linking with them for cluster execution [here]({{site.baseurl}}/dev/projectsetup/dependencies.html).
+See linking with them for cluster execution [here]({{site.baseurl}}/dev/project-configuration.html).
 
 #### Authentication
 In order to connect to the Twitter stream the user has to register their program and acquire the necessary information for the authentication. The process is described below.
diff --git a/docs/dev/connectors/twitter.zh.md b/docs/dev/connectors/twitter.zh.md
index afd3ba8..ae09a7e 100644
--- a/docs/dev/connectors/twitter.zh.md
+++ b/docs/dev/connectors/twitter.zh.md
@@ -35,7 +35,7 @@ Flink Streaming 通过一个内置的 `TwitterSource` 类来创建到 tweets 流
 </dependency>
 {% endhighlight %}
 
-注意:当前的二进制发行版还没有这些连接器。集群执行请参考[这里]({{site.baseurl}}/zh/getting-started/project-setup/dependencies.html).
+注意:当前的二进制发行版还没有这些连接器。集群执行请参考[这里]({{site.baseurl}}/zh/dev/project-configuration.html).
 
 #### 认证
 使用 Twitter 流,用户需要先注册自己的程序,获取认证相关的必要信息。过程如下:
diff --git a/docs/dev/libs/cep.md b/docs/dev/libs/cep.md
index 8e196b6..6bcb25e 100644
--- a/docs/dev/libs/cep.md
+++ b/docs/dev/libs/cep.md
@@ -38,7 +38,7 @@ library makes when [dealing with lateness](#handling-lateness-in-event-time) in
 
 ## Getting Started
 
-If you want to jump right in, [set up a Flink program]({{ site.baseurl }}/dev/projectsetup/dependencies.html) and
+If you want to jump right in, [set up a Flink program]({{ site.baseurl }}/dev/project-configuration.html) and
 add the FlinkCEP dependency to the `pom.xml` of your project.
 
 <div class="codetabs" markdown="1">
@@ -63,7 +63,7 @@ add the FlinkCEP dependency to the `pom.xml` of your project.
 </div>
 </div>
 
-{% info %} FlinkCEP is not part of the binary distribution. See how to link with it for cluster execution [here]({{site.baseurl}}/dev/projectsetup/dependencies.html).
+{% info %} FlinkCEP is not part of the binary distribution. See how to link with it for cluster execution [here]({{site.baseurl}}/dev/project-configuration.html).
 
 Now you can start writing your first CEP program using the Pattern API.
 
diff --git a/docs/dev/libs/cep.zh.md b/docs/dev/libs/cep.zh.md
index 4a2a06c..e7cfa0f 100644
--- a/docs/dev/libs/cep.zh.md
+++ b/docs/dev/libs/cep.zh.md
@@ -35,7 +35,7 @@ FlinkCEP是在Flink上层实现的复杂事件处理库。
 
 ## 开始
 
-如果你想现在开始尝试,[创建一个Flink程序]({{ site.baseurl }}/zh/getting-started/project-setup/dependencies.html),
+如果你想现在开始尝试,[创建一个Flink程序]({{ site.baseurl }}/zh/dev/project-configuration.html),
 添加FlinkCEP的依赖到项目的`pom.xml`文件中。
 
 <div class="codetabs" markdown="1">
@@ -60,7 +60,7 @@ FlinkCEP是在Flink上层实现的复杂事件处理库。
 </div>
 </div>
 
-{% info 提示 %} FlinkCEP不是二进制发布包的一部分。在集群上执行如何链接它可以看[这里]({{site.baseurl}}/zh/getting-started/project-setup/dependencies.html)。
+{% info 提示 %} FlinkCEP不是二进制发布包的一部分。在集群上执行如何链接它可以看[这里]({{site.baseurl}}/zh/dev/project-configuration.html)。
 
 现在可以开始使用Pattern API写你的第一个CEP程序了。
 
diff --git a/docs/dev/libs/gelly/index.md b/docs/dev/libs/gelly/index.md
index e1ea26d..ce2a4ef 100644
--- a/docs/dev/libs/gelly/index.md
+++ b/docs/dev/libs/gelly/index.md
@@ -63,7 +63,7 @@ Add the following dependency to your `pom.xml` to use Gelly.
 </div>
 </div>
 
-Note that Gelly is not part of the binary distribution. See [linking]({{ site.baseurl }}/dev/projectsetup/dependencies.html) for
+Note that Gelly is not part of the binary distribution. See [linking]({{ site.baseurl }}/dev/project-configuration.html) for
 instructions on packaging Gelly libraries into Flink user programs.
 
 The remaining sections provide a description of available methods and present several examples of how to use Gelly and how to mix it with the Flink DataSet API.
diff --git a/docs/dev/libs/gelly/index.zh.md b/docs/dev/libs/gelly/index.zh.md
index d45ac27..092aa6c 100644
--- a/docs/dev/libs/gelly/index.zh.md
+++ b/docs/dev/libs/gelly/index.zh.md
@@ -63,7 +63,7 @@ Add the following dependency to your `pom.xml` to use Gelly.
 </div>
 </div>
 
-Note that Gelly is not part of the binary distribution. See [linking]({{ site.baseurl }}/dev/projectsetup/dependencies.html) for
+Note that Gelly is not part of the binary distribution. See [linking]({{ site.baseurl }}/dev/project-configuration.html) for
 instructions on packaging Gelly libraries into Flink user programs.
 
 The remaining sections provide a description of available methods and present several examples of how to use Gelly and how to mix it with the Flink DataSet API.
diff --git a/docs/dev/project-configuration.md b/docs/dev/project-configuration.md
index a23b134..8d5c58a 100644
--- a/docs/dev/project-configuration.md
+++ b/docs/dev/project-configuration.md
@@ -120,8 +120,8 @@ We recommend packaging the application code and all its required dependencies in
 we refer to as the *application jar*. The application jar can be submitted to an already running Flink cluster,
 or added to a Flink application container image.
 
-Projects created from the [Java Project Template]({{ site.baseurl }}/dev/projectsetup/java_api_quickstart.html) or
-[Scala Project Template]({{ site.baseurl }}/dev/projectsetup/scala_api_quickstart.html) are configured to automatically include
+Projects created from the [Java Project Template]({{ site.baseurl }}/dev/project-configuration.html) or
+[Scala Project Template]({{ site.baseurl }}/dev/project-configuration) are configured to automatically include
 the application dependencies into the application jar when running `mvn clean package`. For projects that are
 not set up from those templates, we recommend adding the Maven Shade Plugin (as listed in the Appendix below)
 to build the application jar with all required dependencies.
diff --git a/docs/dev/project-configuration.zh.md b/docs/dev/project-configuration.zh.md
index a23b134..8d5c58a 100644
--- a/docs/dev/project-configuration.zh.md
+++ b/docs/dev/project-configuration.zh.md
@@ -120,8 +120,8 @@ We recommend packaging the application code and all its required dependencies in
 we refer to as the *application jar*. The application jar can be submitted to an already running Flink cluster,
 or added to a Flink application container image.
 
-Projects created from the [Java Project Template]({{ site.baseurl }}/dev/projectsetup/java_api_quickstart.html) or
-[Scala Project Template]({{ site.baseurl }}/dev/projectsetup/scala_api_quickstart.html) are configured to automatically include
+Projects created from the [Java Project Template]({{ site.baseurl }}/dev/project-configuration.html) or
+[Scala Project Template]({{ site.baseurl }}/dev/project-configuration) are configured to automatically include
 the application dependencies into the application jar when running `mvn clean package`. For projects that are
 not set up from those templates, we recommend adding the Maven Shade Plugin (as listed in the Appendix below)
 to build the application jar with all required dependencies.
diff --git a/docs/dev/stream/state/queryable_state.md b/docs/dev/stream/state/queryable_state.md
index d4c2879..03a2472 100644
--- a/docs/dev/stream/state/queryable_state.md
+++ b/docs/dev/stream/state/queryable_state.md
@@ -180,7 +180,7 @@ jar which must be explicitly included as a dependency in the `pom.xml` of your p
 {% endhighlight %}
 </div>
 
-For more on this, you can check how to [set up a Flink program]({{ site.baseurl }}/dev/projectsetup/dependencies.html).
+For more on this, you can check how to [set up a Flink program]({{ site.baseurl }}/dev/project-configuration.html).
 
 The `QueryableStateClient` will submit your query to the internal proxy, which will then process your query and return 
 the final result. The only requirement to initialize the client is to provide a valid `TaskManager` hostname (remember 
diff --git a/docs/dev/stream/state/queryable_state.zh.md b/docs/dev/stream/state/queryable_state.zh.md
index 6066de0..4b76b4d 100644
--- a/docs/dev/stream/state/queryable_state.zh.md
+++ b/docs/dev/stream/state/queryable_state.zh.md
@@ -149,7 +149,7 @@ descriptor.setQueryable("query-name"); // queryable state name
 {% endhighlight %}
 </div>
 
-关于依赖的更多信息, 可以参考如何 [配置 Flink 项目]({{ site.baseurl }}/zh/getting-started/project-setup/dependencies.html).
+关于依赖的更多信息, 可以参考如何 [配置 Flink 项目]({{ site.baseurl }}/zh/dev/project-configuration.html).
 
 `QueryableStateClient` 将提交你的请求到内部代理,代理会处理请求并返回结果。客户端的初始化只需要提供一个有效的 `TaskManager` 主机名
 (每个 task manager 上都运行着一个 queryable state 代理),以及代理监听的端口号。关于如何配置代理以及端口号可以参考 [Configuration Section](#configuration).
diff --git a/docs/dev/table/hive/index.md b/docs/dev/table/hive/index.md
index 004a6cc..ef551cf 100644
--- a/docs/dev/table/hive/index.md
+++ b/docs/dev/table/hive/index.md
@@ -369,4 +369,4 @@ Hive tables, views, partitions, functions within Flink.
 
 ## DML
 
-Flink supports DML writing to Hive tables. Please refer to details in [Reading & Writing Hive Tables]({{ site.baseurl }}/dev/table/hive/read_write_hive.html)
+Flink supports DML writing to Hive tables. Please refer to details in [Reading & Writing Hive Tables]({{ site.baseurl }}/dev/table/hive/hive_read_write.html)
diff --git a/docs/dev/table/hive/index.zh.md b/docs/dev/table/hive/index.zh.md
index fae835e..897ae42 100644
--- a/docs/dev/table/hive/index.zh.md
+++ b/docs/dev/table/hive/index.zh.md
@@ -364,4 +364,4 @@ catalogs:
 
 ## DML
 
-Flink 支持 DML 写入 Hive 表,请参考[读写 Hive 表]({{ site.baseurl }}/zh/dev/table/hive/read_write_hive.html)
+Flink 支持 DML 写入 Hive 表,请参考[读写 Hive 表]({{ site.baseurl }}/zh/dev/table/hive/hive_read_write.html)
diff --git a/docs/dev/table/sql/create.md b/docs/dev/table/sql/create.md
index dc799bb..b48aa44 100644
--- a/docs/dev/table/sql/create.md
+++ b/docs/dev/table/sql/create.md
@@ -231,7 +231,7 @@ CREATE TABLE Orders (
     order_time TIMESTAMP(3)
 ) WITH ( 
     'connector' = 'kafka',
-    'startup-mode' = 'earliest-offset'
+    'scan.startup.mode' = 'earliest-offset'
 );
 
 CREATE TABLE Orders_with_watermark (
@@ -239,7 +239,7 @@ CREATE TABLE Orders_with_watermark (
     WATERMARK FOR order_time AS order_time - INTERVAL '5' SECOND 
 ) WITH (
     -- Overwrite the startup-mode
-    'startup-mode' = 'latest-offset'
+    'scan.startup.mode' = 'latest-offset'
 )
 LIKE Orders;
 {% endhighlight %}
@@ -253,7 +253,7 @@ CREATE TABLE Orders_with_watermark (
     WATERMARK FOR order_time AS order_time - INTERVAL '5' SECOND 
 ) WITH (
     'connector' = 'kafka',
-    'startup-mode' = 'latest-offset'
+    'scan.startup.mode' = 'latest-offset'
 );
 {% endhighlight %}
 
diff --git a/docs/dev/table/sql/create.zh.md b/docs/dev/table/sql/create.zh.md
index 8348d52..e6b348f 100644
--- a/docs/dev/table/sql/create.zh.md
+++ b/docs/dev/table/sql/create.zh.md
@@ -224,7 +224,7 @@ CREATE TABLE Orders (
     order_time TIMESTAMP(3)
 ) WITH ( 
     'connector' = 'kafka',
-    'startup-mode' = 'earliest-offset'
+    'scan.startup.mode' = 'earliest-offset'
 );
 
 CREATE TABLE Orders_with_watermark (
@@ -232,7 +232,7 @@ CREATE TABLE Orders_with_watermark (
     WATERMARK FOR order_time AS order_time - INTERVAL '5' SECOND 
 ) WITH (
     -- Overwrite the startup-mode
-    'startup-mode' = 'latest-offset'
+    'scan.startup.mode' = 'latest-offset'
 )
 LIKE Orders;
 {% endhighlight %}
@@ -246,7 +246,7 @@ CREATE TABLE Orders_with_watermark (
     WATERMARK FOR order_time AS order_time - INTERVAL '5' SECOND 
 ) WITH (
     'connector' = 'kafka',
-    'startup-mode' = 'latest-offset'
+    'scan.startup.mode' = 'latest-offset'
 );
 {% endhighlight %}
 
diff --git a/docs/dev/table/streaming/match_recognize.md b/docs/dev/table/streaming/match_recognize.md
index 0cdd5a9..7e9f7f4 100644
--- a/docs/dev/table/streaming/match_recognize.md
+++ b/docs/dev/table/streaming/match_recognize.md
@@ -93,7 +93,7 @@ project.
 {% endhighlight %}
 
 Alternatively, you can also add the dependency to the cluster classpath (see the
-[dependency section]({{ site.baseurl}}/dev/projectsetup/dependencies.html) for more information).
+[dependency section]({{ site.baseurl}}/dev/project-configuration.html) for more information).
 
 If you want to use the `MATCH_RECOGNIZE` clause in the
 [SQL Client]({{ site.baseurl}}/dev/table/sqlClient.html), you don't have to do anything as all the
diff --git a/docs/dev/table/streaming/match_recognize.zh.md b/docs/dev/table/streaming/match_recognize.zh.md
index 0cdd5a9..7e9f7f4 100644
--- a/docs/dev/table/streaming/match_recognize.zh.md
+++ b/docs/dev/table/streaming/match_recognize.zh.md
@@ -93,7 +93,7 @@ project.
 {% endhighlight %}
 
 Alternatively, you can also add the dependency to the cluster classpath (see the
-[dependency section]({{ site.baseurl}}/dev/projectsetup/dependencies.html) for more information).
+[dependency section]({{ site.baseurl}}/dev/project-configuration.html) for more information).
 
 If you want to use the `MATCH_RECOGNIZE` clause in the
 [SQL Client]({{ site.baseurl}}/dev/table/sqlClient.html), you don't have to do anything as all the
diff --git a/docs/flinkDev/ide_setup.md b/docs/flinkDev/ide_setup.md
index d944bc6..e715a50 100644
--- a/docs/flinkDev/ide_setup.md
+++ b/docs/flinkDev/ide_setup.md
@@ -27,8 +27,8 @@ under the License.
 
 The sections below describe how to import the Flink project into an IDE
 for the development of Flink itself. For writing Flink programs, please
-refer to the [Java API]({{ site.baseurl }}/dev/projectsetup/java_api_quickstart.html)
-and the [Scala API]({{ site.baseurl }}/dev/projectsetup/scala_api_quickstart.html)
+refer to the [Java API]({{ site.baseurl }}/dev/project-configuration.html)
+and the [Scala API]({{ site.baseurl }}/dev/project-configuration)
 quickstart guides.
 
 **NOTE:** Whenever something is not working in your IDE, try with the Maven
diff --git a/docs/flinkDev/ide_setup.zh.md b/docs/flinkDev/ide_setup.zh.md
index 170f26c..bdfbc02 100644
--- a/docs/flinkDev/ide_setup.zh.md
+++ b/docs/flinkDev/ide_setup.zh.md
@@ -27,8 +27,8 @@ under the License.
 
 The sections below describe how to import the Flink project into an IDE
 for the development of Flink itself. For writing Flink programs, please
-refer to the [Java API]({{ site.baseurl }}/dev/projectsetup/java_api_quickstart.html)
-and the [Scala API]({{ site.baseurl }}/dev/projectsetup/scala_api_quickstart.html)
+refer to the [Java API]({{ site.baseurl }}/dev/project-configuration.html)
+and the [Scala API]({{ site.baseurl }}/dev/project-configuration)
 quickstart guides.
 
 **NOTE:** Whenever something is not working in your IDE, try with the Maven
diff --git a/docs/learn-flink/datastream_api.zh.md b/docs/learn-flink/datastream_api.zh.md
index 5bc25bd..07f3d08 100644
--- a/docs/learn-flink/datastream_api.zh.md
+++ b/docs/learn-flink/datastream_api.zh.md
@@ -205,7 +205,7 @@ and several pub-sub systems.
 ## 更多阅读
 
 - [Flink Serialization Tuning Vol. 1: Choosing your Serializer — if you can](https://flink.apache.org/news/2020/04/15/flink-serialization-tuning-vol-1.html)
-- [Anatomy of a Flink Program]({% link dev/api_concepts.zh.md %}#anatomy-of-a-flink-program)
+- [Anatomy of a Flink Program]({% link dev/datastream_api.md %}#anatomy-of-a-flink-program)
 - [Data Sources]({% link dev/datastream_api.zh.md %}#data-sources)
 - [Data Sinks]({% link dev/datastream_api.zh.md %}#data-sinks)
 - [DataStream Connectors]({% link dev/connectors/index.zh.md %})


[flink] 01/03: [FLINK-17831][docs] Add documentation for the new Kafka connector

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jark pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git

commit b611a1abbef4a12aceff6b75ad3d37d01cc47c94
Author: yuzhao.cyz <yu...@gmail.com>
AuthorDate: Thu Jun 4 20:04:54 2020 +0800

    [FLINK-17831][docs] Add documentation for the new Kafka connector
    
    This closes #12482
---
 docs/dev/table/connectors/index.md    |   4 +-
 docs/dev/table/connectors/index.zh.md |   4 +-
 docs/dev/table/connectors/kafka.md    | 209 ++++++++++++++++++++++++++++++++++
 docs/dev/table/connectors/kafka.zh.md | 209 ++++++++++++++++++++++++++++++++++
 4 files changed, 422 insertions(+), 4 deletions(-)

diff --git a/docs/dev/table/connectors/index.md b/docs/dev/table/connectors/index.md
index 0e1821e..813cf5b 100644
--- a/docs/dev/table/connectors/index.md
+++ b/docs/dev/table/connectors/index.md
@@ -52,7 +52,7 @@ Flink natively support various connectors. The following tables list all availab
     </thead>
     <tbody>
     <tr>
-      <td>Filesystem</td>
+      <td><a href="{{ site.baseurl }}/dev/table/connectors/filesystem.html">Filesystem</a></td>
       <td></td>
       <td>Bounded and Unbounded Scan, Lookup</td>
       <td>Streaming Sink, Batch Sink</td>
@@ -64,7 +64,7 @@ Flink natively support various connectors. The following tables list all availab
       <td>Streaming Sink, Batch Sink</td>
     </tr>
     <tr>
-      <td>Apache Kafka</td>
+      <td><a href="{{ site.baseurl }}/dev/table/connectors/kafka.html">Apache Kafka</a></td>
       <td>0.10+</td>
       <td>Unbounded Scan</td>
       <td>Streaming Sink, Batch Sink</td>
diff --git a/docs/dev/table/connectors/index.zh.md b/docs/dev/table/connectors/index.zh.md
index 08f6c75..7fa8383 100644
--- a/docs/dev/table/connectors/index.zh.md
+++ b/docs/dev/table/connectors/index.zh.md
@@ -52,7 +52,7 @@ Flink natively support various connectors. The following tables list all availab
     </thead>
     <tbody>
     <tr>
-      <td>Filesystem</td>
+      <td><a href="{{ site.baseurl }}/dev/table/connectors/filesystem.html">Filesystem</a></td>
       <td></td>
       <td>Bounded and Unbounded Scan, Lookup</td>
       <td>Streaming Sink, Batch Sink</td>
@@ -64,7 +64,7 @@ Flink natively support various connectors. The following tables list all availab
       <td>Streaming Sink, Batch Sink</td>
     </tr>
     <tr>
-      <td>Apache Kafka</td>
+      <td>[Apache Kafka]({{ site.baseurl }}/dev/table/connectors/kafka.html)</td>
       <td>0.10+</td>
       <td>Unbounded Scan</td>
       <td>Streaming Sink, Batch Sink</td>
diff --git a/docs/dev/table/connectors/kafka.md b/docs/dev/table/connectors/kafka.md
new file mode 100644
index 0000000..fb6ee83
--- /dev/null
+++ b/docs/dev/table/connectors/kafka.md
@@ -0,0 +1,209 @@
+---
+title: "Apache Kafka SQL Connector"
+nav-title: Kafka
+nav-parent_id: sql-connectors
+nav-pos: 1
+---
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<span class="label label-primary">Scan Source: Unbounded</span>
+<span class="label label-primary">Sink: Streaming Append Mode</span>
+
+* This will be replaced by the TOC
+{:toc}
+
+Flink provides an [Apache Kafka](https://kafka.apache.org) connector for reading data from and writing data to Kafka topics.
+
+Dependencies
+------------
+
+Apache Flink ships with multiple Kafka connectors: universal, 0.10, and 0.11.
+This universal Kafka connector attempts to track the latest version of the Kafka client.
+The version of the client it uses may change between Flink releases.
+Modern Kafka clients are backwards compatible with broker versions 0.10.0 or later.
+For most users the universal Kafka connector is the most appropriate.
+However, for Kafka versions 0.11.x and 0.10.x, we recommend using the dedicated ``0.11`` and ``0.10`` connectors, respectively.
+For details on Kafka compatibility, please refer to the official [Kafka documentation](https://kafka.apache.org/protocol.html#protocol_compatibility).
+
+| Kafka Version       | Maven dependency                                          | SQL Client JAR         |
+| :------------------ | :-------------------------------------------------------- | :----------------------|
+| universal           | `flink-connector-kafka{{site.scala_version_suffix}}`      | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
+| 0.11.x              | `flink-connector-kafka-011{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-011{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
+| 0.10.x              | `flink-connector-kafka-010{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-010{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
+
+Flink's streaming connectors are not currently part of the binary distribution.
+See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/projectsetup/dependencies.html).
+
+How to create a Kafka table
+----------------
+<div class="codetabs" markdown="1">
+<div data-lang="SQL" markdown="1">
+{% highlight sql %}
+CREATE TABLE kafkaTable (
+ user_id BIGINT,
+ item_id BIGINT,
+ category_id BIGINT,
+ behavior STRING,
+ ts TIMESTAMP(3)
+) WITH (
+ 'connector' = 'kafka',
+ 'topic' = 'user_behavior',
+ 'properties.bootstrap.server' = 'localhost:9092',
+ 'properties.group.id' = 'testGroup',
+ 'format' = 'csv',
+ 'scan.startup.mode' = 'earliest-offset'
+)
+{% endhighlight %}
+</div>
+</div>
+
+Connector Options
+----------------
+
+<table class="table table-bordered">
+    <thead>
+    <tr>
+      <th class="text-left" style="width: 25%">Option</th>
+      <th class="text-center" style="width: 8%">Required</th>
+      <th class="text-center" style="width: 7%">Default</th>
+      <th class="text-center" style="width: 10%">Type</th>
+      <th class="text-center" style="width: 50%">Description</th>
+    </tr>
+    </thead>
+    <tbody>
+    <tr>
+      <td><h5>connector</h5></td>
+      <td>required</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Specify what connector to use, for Kafka the options are: 'kafka', 'kafka-0.11', 'kafka-0.10'.</td>
+    </tr>
+    <tr>
+      <td><h5>topic</h5></td>
+      <td>required</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Topic name from which the table is read.</td>
+    </tr>
+    <tr>
+      <td><h5>properties.bootstrap.servers</h5></td>
+      <td>required</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Kafka server connection string.</td>
+    </tr>
+    <tr>
+      <td><h5>properties.group.id</h5></td>
+      <td>required by source</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Consumer group in Kafka consumer, no need for Kafka producer</td>
+    </tr>
+    <tr>
+      <td><h5>format</h5></td>
+      <td>required</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Kafka connector requires to specify a format,
+      the supported formats are 'csv', 'json' and 'avro'.
+      Please refer to [Table Formats]({{ site.baseurl }}/dev/table/connect.html#table-formats) section for more details.
+      </td>
+    </tr>
+    <tr>
+      <td><h5>scan.startup.mode</h5></td>
+      <td>optional</td>
+      <td style="word-wrap: break-word;">group-offsets</td>
+      <td>String</td>
+      <td>Startup mode for Kafka consumer, valid enumerations are <code>'earliest-offset'</code>, <code>'latest-offset'</code>, <code>'group-offsets'</code>, <code>'timestamp'</code> or <code>'specific-offsets'</code>.</td>
+    </tr>
+    <tr>
+      <td><h5>scan.startup.specific-offsets</h5></td>
+      <td>optional</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Specifies offsets for each partition in case of 'specific-offsets' startup mode, e.g. `partition:0,offset:42;partition:1,offset:300`.
+      </td>
+    </tr>
+    <tr>
+      <td><h5>scan.startup.timestamp-millis</h5></td>
+      <td>optional</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>Long</td>
+      <td>Timestamp used in case of 'timestamp' startup mode, the 'timestamp' represents the milliseconds that have passed since January 1, 1970 00:00:00.000 GMT, e.g. '1591776274000' for '2020-06-10 16:04:34 +08:00'.</td>
+    </tr>
+    <tr>
+      <td><h5>sink.partitioner</h5></td>
+      <td>optional</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Output partitioning from Flink's partitions into Kafka's partitions. Valid enumerations are
+      <ul>
+        <li><span markdown="span">`fixed`</span>: each Flink partition ends up in at most one Kafka partition.</li>
+        <li><span markdown="span">`round-robin`</span>: a Flink partition is distributed to Kafka partitions round-robin.</li>
+        <li><span markdown="span">`custom class name`</span>: use a custom FlinkKafkaPartitioner subclass.</li>
+      </ul>
+      </td>
+    </tr>
+    </tbody>
+</table>
+
+Features
+----------------
+
+### Specify the 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>
+
+The default option value is `group-offsets` which indicates to consume from last committed offsets in ZK / Kafka brokers.
+
+If `timestamp` is specified, another config option `scan.startup.timestamp-millis` is required to specify a specific startup timestamp in milliseconds since January 1, 1970 00:00:00.000 GMT.
+
+If `specific-offsets` is specified, another config option `scan.startup.specific-offsets` is required to specify specific startup offsets for each partition,
+e.g. an option value `partition:0,offset:42;partition:1,offset:300` indicates offset `42` for partition `0` and offset `300` for partition `1`.
+
+### Sink Partitioning
+The config option `sink.partitioner` specifies output partitioning from Flink's partitions into Kafka's partitions. The valid enumerations are:
+<ul>
+<li><span markdown="span">`fixed`</span>: each Flink partition ends up in at most one Kafka partition.</li>
+<li><span markdown="span">`round-robin`</span>: a Flink partition is distributed to Kafka partitions round-robin.</li>
+<li><span markdown="span">`custom class name`</span>: use a custom FlinkKafkaPartitioner subclass.</li>
+</ul>
+
+<span class="label label-danger">Note</span> If the option value it neither `fixed` nor `round-robin`, then Flink would try to parse as
+the `custom class name`, if that is not a full class name that implements `FlinkKafkaPartitioner`, an exception would be thrown.
+
+If config option `sink.partitioner` is not specified, a partition will be assigned in a round-robin fashion.
+
+### Consistency guarantees
+The Kafka SQL sink only supports at-least-once writes now, for exactly-once writes, use the `DataStream` connector, see
+<a href="{{ site.baseurl }}/dev/connectors/kafka.html#kafka-producers-and-fault-tolerance">Kafka Producers And Fault Tolerance</a> for more details.
+
+Data Type Mapping
+----------------
+Kafka connector requires to specify a format, thus the supported data types are decided by the specific formats it specifies.
+Please refer to <a href="{{ site.baseurl }}/dev/table/connectors/formats/index.html">Table Formats</a> section for more details.
+
+{% top %}
diff --git a/docs/dev/table/connectors/kafka.zh.md b/docs/dev/table/connectors/kafka.zh.md
new file mode 100644
index 0000000..fb6ee83
--- /dev/null
+++ b/docs/dev/table/connectors/kafka.zh.md
@@ -0,0 +1,209 @@
+---
+title: "Apache Kafka SQL Connector"
+nav-title: Kafka
+nav-parent_id: sql-connectors
+nav-pos: 1
+---
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<span class="label label-primary">Scan Source: Unbounded</span>
+<span class="label label-primary">Sink: Streaming Append Mode</span>
+
+* This will be replaced by the TOC
+{:toc}
+
+Flink provides an [Apache Kafka](https://kafka.apache.org) connector for reading data from and writing data to Kafka topics.
+
+Dependencies
+------------
+
+Apache Flink ships with multiple Kafka connectors: universal, 0.10, and 0.11.
+This universal Kafka connector attempts to track the latest version of the Kafka client.
+The version of the client it uses may change between Flink releases.
+Modern Kafka clients are backwards compatible with broker versions 0.10.0 or later.
+For most users the universal Kafka connector is the most appropriate.
+However, for Kafka versions 0.11.x and 0.10.x, we recommend using the dedicated ``0.11`` and ``0.10`` connectors, respectively.
+For details on Kafka compatibility, please refer to the official [Kafka documentation](https://kafka.apache.org/protocol.html#protocol_compatibility).
+
+| Kafka Version       | Maven dependency                                          | SQL Client JAR         |
+| :------------------ | :-------------------------------------------------------- | :----------------------|
+| universal           | `flink-connector-kafka{{site.scala_version_suffix}}`      | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
+| 0.11.x              | `flink-connector-kafka-011{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-011{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
+| 0.10.x              | `flink-connector-kafka-010{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-010{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
+
+Flink's streaming connectors are not currently part of the binary distribution.
+See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/projectsetup/dependencies.html).
+
+How to create a Kafka table
+----------------
+<div class="codetabs" markdown="1">
+<div data-lang="SQL" markdown="1">
+{% highlight sql %}
+CREATE TABLE kafkaTable (
+ user_id BIGINT,
+ item_id BIGINT,
+ category_id BIGINT,
+ behavior STRING,
+ ts TIMESTAMP(3)
+) WITH (
+ 'connector' = 'kafka',
+ 'topic' = 'user_behavior',
+ 'properties.bootstrap.server' = 'localhost:9092',
+ 'properties.group.id' = 'testGroup',
+ 'format' = 'csv',
+ 'scan.startup.mode' = 'earliest-offset'
+)
+{% endhighlight %}
+</div>
+</div>
+
+Connector Options
+----------------
+
+<table class="table table-bordered">
+    <thead>
+    <tr>
+      <th class="text-left" style="width: 25%">Option</th>
+      <th class="text-center" style="width: 8%">Required</th>
+      <th class="text-center" style="width: 7%">Default</th>
+      <th class="text-center" style="width: 10%">Type</th>
+      <th class="text-center" style="width: 50%">Description</th>
+    </tr>
+    </thead>
+    <tbody>
+    <tr>
+      <td><h5>connector</h5></td>
+      <td>required</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Specify what connector to use, for Kafka the options are: 'kafka', 'kafka-0.11', 'kafka-0.10'.</td>
+    </tr>
+    <tr>
+      <td><h5>topic</h5></td>
+      <td>required</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Topic name from which the table is read.</td>
+    </tr>
+    <tr>
+      <td><h5>properties.bootstrap.servers</h5></td>
+      <td>required</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Kafka server connection string.</td>
+    </tr>
+    <tr>
+      <td><h5>properties.group.id</h5></td>
+      <td>required by source</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Consumer group in Kafka consumer, no need for Kafka producer</td>
+    </tr>
+    <tr>
+      <td><h5>format</h5></td>
+      <td>required</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Kafka connector requires to specify a format,
+      the supported formats are 'csv', 'json' and 'avro'.
+      Please refer to [Table Formats]({{ site.baseurl }}/dev/table/connect.html#table-formats) section for more details.
+      </td>
+    </tr>
+    <tr>
+      <td><h5>scan.startup.mode</h5></td>
+      <td>optional</td>
+      <td style="word-wrap: break-word;">group-offsets</td>
+      <td>String</td>
+      <td>Startup mode for Kafka consumer, valid enumerations are <code>'earliest-offset'</code>, <code>'latest-offset'</code>, <code>'group-offsets'</code>, <code>'timestamp'</code> or <code>'specific-offsets'</code>.</td>
+    </tr>
+    <tr>
+      <td><h5>scan.startup.specific-offsets</h5></td>
+      <td>optional</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Specifies offsets for each partition in case of 'specific-offsets' startup mode, e.g. `partition:0,offset:42;partition:1,offset:300`.
+      </td>
+    </tr>
+    <tr>
+      <td><h5>scan.startup.timestamp-millis</h5></td>
+      <td>optional</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>Long</td>
+      <td>Timestamp used in case of 'timestamp' startup mode, the 'timestamp' represents the milliseconds that have passed since January 1, 1970 00:00:00.000 GMT, e.g. '1591776274000' for '2020-06-10 16:04:34 +08:00'.</td>
+    </tr>
+    <tr>
+      <td><h5>sink.partitioner</h5></td>
+      <td>optional</td>
+      <td style="word-wrap: break-word;">(none)</td>
+      <td>String</td>
+      <td>Output partitioning from Flink's partitions into Kafka's partitions. Valid enumerations are
+      <ul>
+        <li><span markdown="span">`fixed`</span>: each Flink partition ends up in at most one Kafka partition.</li>
+        <li><span markdown="span">`round-robin`</span>: a Flink partition is distributed to Kafka partitions round-robin.</li>
+        <li><span markdown="span">`custom class name`</span>: use a custom FlinkKafkaPartitioner subclass.</li>
+      </ul>
+      </td>
+    </tr>
+    </tbody>
+</table>
+
+Features
+----------------
+
+### Specify the 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>
+
+The default option value is `group-offsets` which indicates to consume from last committed offsets in ZK / Kafka brokers.
+
+If `timestamp` is specified, another config option `scan.startup.timestamp-millis` is required to specify a specific startup timestamp in milliseconds since January 1, 1970 00:00:00.000 GMT.
+
+If `specific-offsets` is specified, another config option `scan.startup.specific-offsets` is required to specify specific startup offsets for each partition,
+e.g. an option value `partition:0,offset:42;partition:1,offset:300` indicates offset `42` for partition `0` and offset `300` for partition `1`.
+
+### Sink Partitioning
+The config option `sink.partitioner` specifies output partitioning from Flink's partitions into Kafka's partitions. The valid enumerations are:
+<ul>
+<li><span markdown="span">`fixed`</span>: each Flink partition ends up in at most one Kafka partition.</li>
+<li><span markdown="span">`round-robin`</span>: a Flink partition is distributed to Kafka partitions round-robin.</li>
+<li><span markdown="span">`custom class name`</span>: use a custom FlinkKafkaPartitioner subclass.</li>
+</ul>
+
+<span class="label label-danger">Note</span> If the option value it neither `fixed` nor `round-robin`, then Flink would try to parse as
+the `custom class name`, if that is not a full class name that implements `FlinkKafkaPartitioner`, an exception would be thrown.
+
+If config option `sink.partitioner` is not specified, a partition will be assigned in a round-robin fashion.
+
+### Consistency guarantees
+The Kafka SQL sink only supports at-least-once writes now, for exactly-once writes, use the `DataStream` connector, see
+<a href="{{ site.baseurl }}/dev/connectors/kafka.html#kafka-producers-and-fault-tolerance">Kafka Producers And Fault Tolerance</a> for more details.
+
+Data Type Mapping
+----------------
+Kafka connector requires to specify a format, thus the supported data types are decided by the specific formats it specifies.
+Please refer to <a href="{{ site.baseurl }}/dev/table/connectors/formats/index.html">Table Formats</a> section for more details.
+
+{% top %}


[flink] 02/03: [hotfix][docs][connectors] Improve SQL connectors documentation

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jark pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 4581d543b5d4d21e0dff9ea9271f384f05adac30
Author: Jark Wu <ja...@apache.org>
AuthorDate: Fri Jun 12 00:31:37 2020 +0800

    [hotfix][docs][connectors] Improve SQL connectors documentation
---
 docs/dev/table/connectors/elasticsearch.md    |   6 +-
 docs/dev/table/connectors/elasticsearch.zh.md |   6 +-
 docs/dev/table/connectors/filesystem.md       |   2 +-
 docs/dev/table/connectors/filesystem.zh.md    |   2 +-
 docs/dev/table/connectors/formats/avro.md     |  82 ++++++++++----------
 docs/dev/table/connectors/formats/avro.zh.md  |  84 ++++++++++-----------
 docs/dev/table/connectors/formats/csv.md      | 103 +++++++++++++-------------
 docs/dev/table/connectors/formats/csv.zh.md   | 103 +++++++++++++-------------
 docs/dev/table/connectors/formats/index.md    |  14 ++--
 docs/dev/table/connectors/formats/index.zh.md |  14 ++--
 docs/dev/table/connectors/formats/json.md     |  80 ++++++++++----------
 docs/dev/table/connectors/formats/json.zh.md  |  80 ++++++++++----------
 docs/dev/table/connectors/hbase.md            |  54 +++++++-------
 docs/dev/table/connectors/hbase.zh.md         |  54 +++++++-------
 docs/dev/table/connectors/index.md            |  18 ++---
 docs/dev/table/connectors/index.zh.md         |  24 +++---
 docs/dev/table/connectors/jdbc.md             |   6 +-
 docs/dev/table/connectors/jdbc.zh.md          |   6 +-
 docs/dev/table/connectors/kafka.md            |  70 ++++++++---------
 docs/dev/table/connectors/kafka.zh.md         |  70 ++++++++---------
 20 files changed, 442 insertions(+), 436 deletions(-)

diff --git a/docs/dev/table/connectors/elasticsearch.md b/docs/dev/table/connectors/elasticsearch.md
index 5ea587ab..d620d4e 100644
--- a/docs/dev/table/connectors/elasticsearch.md
+++ b/docs/dev/table/connectors/elasticsearch.md
@@ -2,7 +2,7 @@
 title: "Elasticsearch SQL Connector"
 nav-title: Elasticsearch
 nav-parent_id: sql-connectors
-nav-pos: 3
+nav-pos: 4
 ---
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
@@ -263,4 +263,6 @@ Data Type Mapping
 ----------------
 
 Elasticsearch stores document in a JSON string. So the data type mapping is between Flink data type and JSON data type.
-Flink uses built-in `'json'` format for Elasticsearch connector. Please refer to <a href="{% link dev/table/connectors/formats/index.md %}">JSON Format</a> page for more type mapping details.
\ No newline at end of file
+Flink uses built-in `'json'` format for Elasticsearch connector. Please refer to [JSON Format]({% link dev/table/connectors/formats/json.md %}) page for more type mapping details.
+
+{% top %}
\ No newline at end of file
diff --git a/docs/dev/table/connectors/elasticsearch.zh.md b/docs/dev/table/connectors/elasticsearch.zh.md
index 5ea587ab..d620d4e 100644
--- a/docs/dev/table/connectors/elasticsearch.zh.md
+++ b/docs/dev/table/connectors/elasticsearch.zh.md
@@ -2,7 +2,7 @@
 title: "Elasticsearch SQL Connector"
 nav-title: Elasticsearch
 nav-parent_id: sql-connectors
-nav-pos: 3
+nav-pos: 4
 ---
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
@@ -263,4 +263,6 @@ Data Type Mapping
 ----------------
 
 Elasticsearch stores document in a JSON string. So the data type mapping is between Flink data type and JSON data type.
-Flink uses built-in `'json'` format for Elasticsearch connector. Please refer to <a href="{% link dev/table/connectors/formats/index.md %}">JSON Format</a> page for more type mapping details.
\ No newline at end of file
+Flink uses built-in `'json'` format for Elasticsearch connector. Please refer to [JSON Format]({% link dev/table/connectors/formats/json.md %}) page for more type mapping details.
+
+{% top %}
\ No newline at end of file
diff --git a/docs/dev/table/connectors/filesystem.md b/docs/dev/table/connectors/filesystem.md
index 5b98041..a39e76e 100644
--- a/docs/dev/table/connectors/filesystem.md
+++ b/docs/dev/table/connectors/filesystem.md
@@ -2,7 +2,7 @@
 title: "FileSystem SQL Connector"
 nav-title: FileSystem
 nav-parent_id: sql-connectors
-nav-pos: 3
+nav-pos: 5
 ---
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
diff --git a/docs/dev/table/connectors/filesystem.zh.md b/docs/dev/table/connectors/filesystem.zh.md
index 5b98041..a39e76e 100644
--- a/docs/dev/table/connectors/filesystem.zh.md
+++ b/docs/dev/table/connectors/filesystem.zh.md
@@ -2,7 +2,7 @@
 title: "FileSystem SQL Connector"
 nav-title: FileSystem
 nav-parent_id: sql-connectors
-nav-pos: 3
+nav-pos: 5
 ---
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
diff --git a/docs/dev/table/connectors/formats/avro.md b/docs/dev/table/connectors/formats/avro.md
index 93f758a..c03d98d 100644
--- a/docs/dev/table/connectors/formats/avro.md
+++ b/docs/dev/table/connectors/formats/avro.md
@@ -95,7 +95,7 @@ Format Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specify what format to use, here should be 'avro'.</td>
+      <td>Specify what format to use, here should be <code>'avro'</code>.</td>
     </tr>
     </tbody>
 </table>
@@ -109,9 +109,9 @@ So the following table lists the type mapping from Flink type to Avro type.
 <table class="table table-bordered">
     <thead>
       <tr>
-        <th class="text-left">Flink Data Type</th>
-        <th class="text-center">Avro type</th>
-        <th class="text-center">Avro logical type</th>
+        <th class="text-left">Flink SQL type</th>
+        <th class="text-left">Avro type</th>
+        <th class="text-left">Avro logical type</th>
       </tr>
     </thead>
     <tbody>
@@ -121,85 +121,85 @@ So the following table lists the type mapping from Flink type to Avro type.
       <td></td>
     </tr>
     <tr>
-      <td>BOOLEAN</td>
-      <td>boolean</td>
+      <td><code>BOOLEAN</code></td>
+      <td><code>boolean</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>BINARY / VARBINARY</td>
-      <td>bytes</td>
+      <td><code>BINARY / VARBINARY</code></td>
+      <td><code>bytes</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>DECIMAL</td>
-      <td>fixed</td>
-      <td>decimal</td>
+      <td><code>DECIMAL</code></td>
+      <td><code>fixed</code></td>
+      <td><code>decimal</code></td>
     </tr>
     <tr>
-      <td>TINYINT</td>
-      <td>int</td>
+      <td><code>TINYINT</code></td>
+      <td><code>int</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>SMALLINT</td>
-      <td>int</td>
+      <td><code>SMALLINT</code></td>
+      <td><code>int</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>INT</td>
-      <td>int</td>
+      <td><code>INT</code></td>
+      <td><code>int</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>BIGINT</td>
-      <td>long</td>
+      <td><code>BIGINT</code></td>
+      <td><code>long</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>FLOAT</td>
-      <td>float</td>
+      <td><code>FLOAT</code></td>
+      <td><code>float</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>DOUBLE</td>
-      <td>double</td>
+      <td><code>DOUBLE</code></td>
+      <td><code>double</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>DATE</td>
-      <td>int</td>
-      <td>date</td>
+      <td><code>DATE</code></td>
+      <td><code>int</code></td>
+      <td><code>date</code></td>
     </tr>
     <tr>
-      <td>TIME</td>
-      <td>int</td>
-      <td>time-millis</td>
+      <td><code>TIME</code></td>
+      <td><code>int</code></td>
+      <td><code>time-millis</code></td>
     </tr>
     <tr>
-      <td>TIMESTAMP</td>
-      <td>long</td>
-      <td>timestamp-millis</td>
+      <td><code>TIMESTAMP</code></td>
+      <td><code>long</code></td>
+      <td><code>timestamp-millis</code></td>
     </tr>
     <tr>
-      <td>ARRAY</td>
-      <td>array</td>
+      <td><code>ARRAY</code></td>
+      <td><code>array</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>MAP<br>
+      <td><code>MAP</code><br>
       (key must be string/char/varchar type)</td>
-      <td>map</td>
+      <td><code>map</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>MULTISET<br>
+      <td><code>MULTISET</code><br>
       (element must be string/char/varchar type)</td>
-      <td>map</td>
+      <td><code>map</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>ROW</td>
-      <td>record</td>
+      <td><code>ROW</code></td>
+      <td><code>record</code></td>
       <td></td>
     </tr>
     </tbody>
@@ -207,7 +207,7 @@ So the following table lists the type mapping from Flink type to Avro type.
 
 In addition to the types listed above, Flink supports reading/writing nullable types. Flink maps nullable types to Avro `union(something, null)`, where `something` is the Avro type converted from Flink type.
 
-You can refer to Avro Specification for more information about Avro types: [https://avro.apache.org/docs/current/spec.html](https://avro.apache.org/docs/current/spec.html).
+You can refer to [Avro Specification](https://avro.apache.org/docs/current/spec.html) for more information about Avro types.
 
 
 
diff --git a/docs/dev/table/connectors/formats/avro.zh.md b/docs/dev/table/connectors/formats/avro.zh.md
index 01c9ace..c03d98d 100644
--- a/docs/dev/table/connectors/formats/avro.zh.md
+++ b/docs/dev/table/connectors/formats/avro.zh.md
@@ -38,7 +38,7 @@ In order to setup the Avro format, the following table provides dependency infor
 
 <div class="codetabs" markdown="1">
 <div data-lang="SQL Client JAR" markdown="1">
-Avro format is part of the binary distribution, but requires additional [Hadoop dependency]({% link ops/deployment/hadoop.zh.md %}) for cluster execution.
+Avro format is part of the binary distribution, but requires additional [Hadoop dependency]({% link ops/deployment/hadoop.md %}) for cluster execution.
 </div>
 <div data-lang="Maven dependency" markdown="1">
 {% highlight xml %}
@@ -95,7 +95,7 @@ Format Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specify what format to use, here should be 'avro'.</td>
+      <td>Specify what format to use, here should be <code>'avro'</code>.</td>
     </tr>
     </tbody>
 </table>
@@ -109,9 +109,9 @@ So the following table lists the type mapping from Flink type to Avro type.
 <table class="table table-bordered">
     <thead>
       <tr>
-        <th class="text-left">Flink Data Type</th>
-        <th class="text-center">Avro type</th>
-        <th class="text-center">Avro logical type</th>
+        <th class="text-left">Flink SQL type</th>
+        <th class="text-left">Avro type</th>
+        <th class="text-left">Avro logical type</th>
       </tr>
     </thead>
     <tbody>
@@ -121,85 +121,85 @@ So the following table lists the type mapping from Flink type to Avro type.
       <td></td>
     </tr>
     <tr>
-      <td>BOOLEAN</td>
-      <td>boolean</td>
+      <td><code>BOOLEAN</code></td>
+      <td><code>boolean</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>BINARY / VARBINARY</td>
-      <td>bytes</td>
+      <td><code>BINARY / VARBINARY</code></td>
+      <td><code>bytes</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>DECIMAL</td>
-      <td>fixed</td>
-      <td>decimal</td>
+      <td><code>DECIMAL</code></td>
+      <td><code>fixed</code></td>
+      <td><code>decimal</code></td>
     </tr>
     <tr>
-      <td>TINYINT</td>
-      <td>int</td>
+      <td><code>TINYINT</code></td>
+      <td><code>int</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>SMALLINT</td>
-      <td>int</td>
+      <td><code>SMALLINT</code></td>
+      <td><code>int</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>INT</td>
-      <td>int</td>
+      <td><code>INT</code></td>
+      <td><code>int</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>BIGINT</td>
-      <td>long</td>
+      <td><code>BIGINT</code></td>
+      <td><code>long</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>FLOAT</td>
-      <td>float</td>
+      <td><code>FLOAT</code></td>
+      <td><code>float</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>DOUBLE</td>
-      <td>double</td>
+      <td><code>DOUBLE</code></td>
+      <td><code>double</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>DATE</td>
-      <td>int</td>
-      <td>date</td>
+      <td><code>DATE</code></td>
+      <td><code>int</code></td>
+      <td><code>date</code></td>
     </tr>
     <tr>
-      <td>TIME</td>
-      <td>int</td>
-      <td>time-millis</td>
+      <td><code>TIME</code></td>
+      <td><code>int</code></td>
+      <td><code>time-millis</code></td>
     </tr>
     <tr>
-      <td>TIMESTAMP</td>
-      <td>long</td>
-      <td>timestamp-millis</td>
+      <td><code>TIMESTAMP</code></td>
+      <td><code>long</code></td>
+      <td><code>timestamp-millis</code></td>
     </tr>
     <tr>
-      <td>ARRAY</td>
-      <td>array</td>
+      <td><code>ARRAY</code></td>
+      <td><code>array</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>MAP<br>
+      <td><code>MAP</code><br>
       (key must be string/char/varchar type)</td>
-      <td>map</td>
+      <td><code>map</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>MULTISET<br>
+      <td><code>MULTISET</code><br>
       (element must be string/char/varchar type)</td>
-      <td>map</td>
+      <td><code>map</code></td>
       <td></td>
     </tr>
     <tr>
-      <td>ROW</td>
-      <td>record</td>
+      <td><code>ROW</code></td>
+      <td><code>record</code></td>
       <td></td>
     </tr>
     </tbody>
@@ -207,7 +207,7 @@ So the following table lists the type mapping from Flink type to Avro type.
 
 In addition to the types listed above, Flink supports reading/writing nullable types. Flink maps nullable types to Avro `union(something, null)`, where `something` is the Avro type converted from Flink type.
 
-You can refer to Avro Specification for more information about Avro types: [https://avro.apache.org/docs/current/spec.html](https://avro.apache.org/docs/current/spec.html).
+You can refer to [Avro Specification](https://avro.apache.org/docs/current/spec.html) for more information about Avro types.
 
 
 
diff --git a/docs/dev/table/connectors/formats/csv.md b/docs/dev/table/connectors/formats/csv.md
index 6154fbd..b34a1e8 100644
--- a/docs/dev/table/connectors/formats/csv.md
+++ b/docs/dev/table/connectors/formats/csv.md
@@ -86,57 +86,57 @@ Format Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specify what format to use, here should be 'csv'.</td>
+      <td>Specify what format to use, here should be <code>'csv'</code>.</td>
     </tr>
     <tr>
       <td><h5>csv.field-delimiter</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;"><code>,</code></td>
       <td>String</td>
-      <td>Field delimiter character (',' by default).</td>
+      <td>Field delimiter character (<code>','</code> by default).</td>
     </tr>
     <tr>
       <td><h5>csv.line-delimiter</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;"><code>\n</code></td>
       <td>String</td>
-      <td>Line delimiter ('\n' by default, otherwise
-      '\r' or '\r\n' are allowed), unicode is supported if
-      the delimiter is an invisible special character,
-      e.g. U&'\\000D' is the unicode representation of carriage return '\r'
-      e.g. U&'\\000A' is the unicode representation of line feed '\n'.</td>
+      <td>Line delimiter, <code>\n</code> by default. Note the <code>\n</code> and <code>\r</code> are invisible special characters, you have to use unicode to specify them in plain SQL.
+          <ul>
+           <li>e.g. <code>'csv.line-delimiter' = U&'\\000D'</code> specifies the to use carriage return <code>\r</code> as line delimiter.</li>
+           <li>e.g. <code>'csv.line-delimiter' = U&'\\000A'</code> specifies the to use line feed <code>\n</code> as line delimiter.</li>
+          </ul>
+      </td>
     </tr>
     <tr>
       <td><h5>csv.disable-quote-character</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">false</td>
       <td>Boolean</td>
-      <td>Flag to disabled quote character for enclosing field values (false by default)
-      if true, quote-character can not be set.</td>
+      <td>Disabled quote character for enclosing field values (false by default).
+      If true, option <code>'csv.quote-character'</code> must be set.</td>
     </tr>
     <tr>
       <td><h5>csv.quote-character</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;"><code>"</code></td>
       <td>String</td>
-      <td>Quote character for enclosing field values ('"' by default).</td>
+      <td>Quote character for enclosing field values (<code>"</code> by default).</td>
     </tr>
     <tr>
       <td><h5>csv.allow-comments</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">false</td>
       <td>Boolean</td>
-      <td>Flag to ignore comment lines that start with '#'
-      (disabled by default);
-      if enabled, make sure to also ignore parse errors to allow empty rows.</td>
+      <td>Ignore comment lines that start with <code>'#'</code> (disabled by default).
+      If enabled, make sure to also ignore parse errors to allow empty rows.</td>
     </tr>
     <tr>
       <td><h5>csv.ignore-parse-errors</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">false</td>
       <td>Boolean</td>
-      <td>Flag to skip fields and rows with parse errors instead of failing;
-      fields are set to null in case of errors.</td>
+      <td>Skip fields and rows with parse errors instead of failing.
+      Fields are set to null in case of errors.</td>
     </tr>
     <tr>
       <td><h5>csv.array-element-delimiter</h5></td>
@@ -144,7 +144,7 @@ Format Options
       <td style="word-wrap: break-word;"><code>;</code></td>
       <td>String</td>
       <td>Array element delimiter string for separating
-      array and row element values (';' by default).</td>
+      array and row element values (<code>';'</code> by default).</td>
     </tr>
     <tr>
       <td><h5>csv.escape-character</h5></td>
@@ -158,8 +158,7 @@ Format Options
       <td>optional</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Null literal string that is interpreted as a
-      null value (disabled by default).</td>
+      <td>Null literal string that is interpreted as a null value (disabled by default).</td>
     </tr>
     </tbody>
 </table>
@@ -176,74 +175,74 @@ The following table lists the type mapping from Flink type to CSV type.
 <table class="table table-bordered">
     <thead>
       <tr>
-        <th class="text-left">Flink Data Type</th>
-        <th class="text-center">CSV Data Type</th>
+        <th class="text-left">Flink SQL type</th>
+        <th class="text-left">CSV type</th>
       </tr>
     </thead>
     <tbody>
     <tr>
-      <td>CHAR / VARCHAR / STRING</td>
-      <td>string</td>
+      <td><code>CHAR / VARCHAR / STRING</code></td>
+      <td><code>string</code></td>
     </tr>
     <tr>
-      <td>BOOLEAN</td>
-      <td>boolean</td>
+      <td><code>BOOLEAN</code></td>
+      <td><code>boolean</code></td>
     </tr>
     <tr>
-      <td>BINARY / VARBINARY</td>
-      <td>string with encoding: base64</td>
+      <td><code>BINARY / VARBINARY</code></td>
+      <td><code>string with encoding: base64</code></td>
     </tr>
     <tr>
-      <td>DECIMAL</td>
-      <td>number</td>
+      <td><code>DECIMAL</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>TINYINT</td>
-      <td>number</td>
+      <td><code>TINYINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>SMALLINT</td>
-      <td>number</td>
+      <td><code>SMALLINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>INT</td>
-      <td>number</td>
+      <td><code>INT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>BIGINT</td>
-      <td>number</td>
+      <td><code>BIGINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>FLOAT</td>
-      <td>number</td>
+      <td><code>FLOAT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>DOUBLE</td>
-      <td>number</td>
+      <td><code>DOUBLE</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>DATE</td>
-      <td>string with format: date</td>
+      <td><code>DATE</code></td>
+      <td><code>string with format: date</code></td>
     </tr>
     <tr>
-      <td>TIME</td>
-      <td>string with format: time</td>
+      <td><code>TIME</code></td>
+      <td><code>string with format: time</code></td>
     </tr>
     <tr>
-      <td>TIMESTAMP</td>
-      <td>string with format: date-time</td>
+      <td><code>TIMESTAMP</code></td>
+      <td><code>string with format: date-time</code></td>
     </tr>
     <tr>
-      <td>INTERVAL</td>
-      <td>number</td>
+      <td><code>INTERVAL</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>ARRAY</td>
-      <td>array</td>
+      <td><code>ARRAY</code></td>
+      <td><code>array</code></td>
     </tr>
     <tr>
-      <td>ROW</td>
-      <td>object</td>
+      <td><code>ROW</code></td>
+      <td><code>object</code></td>
     </tr>
     </tbody>
 </table>
diff --git a/docs/dev/table/connectors/formats/csv.zh.md b/docs/dev/table/connectors/formats/csv.zh.md
index 6154fbd..b34a1e8 100644
--- a/docs/dev/table/connectors/formats/csv.zh.md
+++ b/docs/dev/table/connectors/formats/csv.zh.md
@@ -86,57 +86,57 @@ Format Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specify what format to use, here should be 'csv'.</td>
+      <td>Specify what format to use, here should be <code>'csv'</code>.</td>
     </tr>
     <tr>
       <td><h5>csv.field-delimiter</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;"><code>,</code></td>
       <td>String</td>
-      <td>Field delimiter character (',' by default).</td>
+      <td>Field delimiter character (<code>','</code> by default).</td>
     </tr>
     <tr>
       <td><h5>csv.line-delimiter</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;"><code>\n</code></td>
       <td>String</td>
-      <td>Line delimiter ('\n' by default, otherwise
-      '\r' or '\r\n' are allowed), unicode is supported if
-      the delimiter is an invisible special character,
-      e.g. U&'\\000D' is the unicode representation of carriage return '\r'
-      e.g. U&'\\000A' is the unicode representation of line feed '\n'.</td>
+      <td>Line delimiter, <code>\n</code> by default. Note the <code>\n</code> and <code>\r</code> are invisible special characters, you have to use unicode to specify them in plain SQL.
+          <ul>
+           <li>e.g. <code>'csv.line-delimiter' = U&'\\000D'</code> specifies the to use carriage return <code>\r</code> as line delimiter.</li>
+           <li>e.g. <code>'csv.line-delimiter' = U&'\\000A'</code> specifies the to use line feed <code>\n</code> as line delimiter.</li>
+          </ul>
+      </td>
     </tr>
     <tr>
       <td><h5>csv.disable-quote-character</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">false</td>
       <td>Boolean</td>
-      <td>Flag to disabled quote character for enclosing field values (false by default)
-      if true, quote-character can not be set.</td>
+      <td>Disabled quote character for enclosing field values (false by default).
+      If true, option <code>'csv.quote-character'</code> must be set.</td>
     </tr>
     <tr>
       <td><h5>csv.quote-character</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;"><code>"</code></td>
       <td>String</td>
-      <td>Quote character for enclosing field values ('"' by default).</td>
+      <td>Quote character for enclosing field values (<code>"</code> by default).</td>
     </tr>
     <tr>
       <td><h5>csv.allow-comments</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">false</td>
       <td>Boolean</td>
-      <td>Flag to ignore comment lines that start with '#'
-      (disabled by default);
-      if enabled, make sure to also ignore parse errors to allow empty rows.</td>
+      <td>Ignore comment lines that start with <code>'#'</code> (disabled by default).
+      If enabled, make sure to also ignore parse errors to allow empty rows.</td>
     </tr>
     <tr>
       <td><h5>csv.ignore-parse-errors</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">false</td>
       <td>Boolean</td>
-      <td>Flag to skip fields and rows with parse errors instead of failing;
-      fields are set to null in case of errors.</td>
+      <td>Skip fields and rows with parse errors instead of failing.
+      Fields are set to null in case of errors.</td>
     </tr>
     <tr>
       <td><h5>csv.array-element-delimiter</h5></td>
@@ -144,7 +144,7 @@ Format Options
       <td style="word-wrap: break-word;"><code>;</code></td>
       <td>String</td>
       <td>Array element delimiter string for separating
-      array and row element values (';' by default).</td>
+      array and row element values (<code>';'</code> by default).</td>
     </tr>
     <tr>
       <td><h5>csv.escape-character</h5></td>
@@ -158,8 +158,7 @@ Format Options
       <td>optional</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Null literal string that is interpreted as a
-      null value (disabled by default).</td>
+      <td>Null literal string that is interpreted as a null value (disabled by default).</td>
     </tr>
     </tbody>
 </table>
@@ -176,74 +175,74 @@ The following table lists the type mapping from Flink type to CSV type.
 <table class="table table-bordered">
     <thead>
       <tr>
-        <th class="text-left">Flink Data Type</th>
-        <th class="text-center">CSV Data Type</th>
+        <th class="text-left">Flink SQL type</th>
+        <th class="text-left">CSV type</th>
       </tr>
     </thead>
     <tbody>
     <tr>
-      <td>CHAR / VARCHAR / STRING</td>
-      <td>string</td>
+      <td><code>CHAR / VARCHAR / STRING</code></td>
+      <td><code>string</code></td>
     </tr>
     <tr>
-      <td>BOOLEAN</td>
-      <td>boolean</td>
+      <td><code>BOOLEAN</code></td>
+      <td><code>boolean</code></td>
     </tr>
     <tr>
-      <td>BINARY / VARBINARY</td>
-      <td>string with encoding: base64</td>
+      <td><code>BINARY / VARBINARY</code></td>
+      <td><code>string with encoding: base64</code></td>
     </tr>
     <tr>
-      <td>DECIMAL</td>
-      <td>number</td>
+      <td><code>DECIMAL</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>TINYINT</td>
-      <td>number</td>
+      <td><code>TINYINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>SMALLINT</td>
-      <td>number</td>
+      <td><code>SMALLINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>INT</td>
-      <td>number</td>
+      <td><code>INT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>BIGINT</td>
-      <td>number</td>
+      <td><code>BIGINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>FLOAT</td>
-      <td>number</td>
+      <td><code>FLOAT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>DOUBLE</td>
-      <td>number</td>
+      <td><code>DOUBLE</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>DATE</td>
-      <td>string with format: date</td>
+      <td><code>DATE</code></td>
+      <td><code>string with format: date</code></td>
     </tr>
     <tr>
-      <td>TIME</td>
-      <td>string with format: time</td>
+      <td><code>TIME</code></td>
+      <td><code>string with format: time</code></td>
     </tr>
     <tr>
-      <td>TIMESTAMP</td>
-      <td>string with format: date-time</td>
+      <td><code>TIMESTAMP</code></td>
+      <td><code>string with format: date-time</code></td>
     </tr>
     <tr>
-      <td>INTERVAL</td>
-      <td>number</td>
+      <td><code>INTERVAL</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>ARRAY</td>
-      <td>array</td>
+      <td><code>ARRAY</code></td>
+      <td><code>array</code></td>
     </tr>
     <tr>
-      <td>ROW</td>
-      <td>object</td>
+      <td><code>ROW</code></td>
+      <td><code>object</code></td>
     </tr>
     </tbody>
 </table>
diff --git a/docs/dev/table/connectors/formats/index.md b/docs/dev/table/connectors/formats/index.md
index 9209166..6ab144d 100644
--- a/docs/dev/table/connectors/formats/index.md
+++ b/docs/dev/table/connectors/formats/index.md
@@ -37,28 +37,28 @@ Flink supports the following formats:
     </thead>
     <tbody>
         <tr>
-          <td><a href="{{ site.baseurl }}/dev/table/connectors/formats/csv.html">CSV</a></td>
-          <td>Apache Kafka,
+          <td><a href="{% link dev/table/connectors/formats/csv.md %}">CSV</a></td>
+          <td><a href="{% link dev/table/connectors/kafka.md %}">Apache Kafka</a>,
           <a href="{% link dev/table/connectors/filesystem.md %}">Filesystem</a></td>
         </tr>
         <tr>
-         <td><a href="{{ site.baseurl }}/dev/table/connectors/formats/json.html">JSON</a></td>
-         <td>Apache Kafka,
+         <td><a href="{% link dev/table/connectors/formats/json.md %}">JSON</a></td>
+         <td><a href="{% link dev/table/connectors/kafka.md %}">Apache Kafka</a>,
           <a href="{% link dev/table/connectors/filesystem.md %}">Filesystem</a>,
           <a href="{% link dev/table/connectors/elasticsearch.md %}">Elasticsearch</a></td>
        </tr>
         <tr>
           <td><a href="{% link dev/table/connectors/formats/avro.md %}">Apache Avro</a></td>
-          <td>Apache Kafka,
+          <td><a href="{% link dev/table/connectors/kafka.md %}">Apache Kafka</a>,
            <a href="{% link dev/table/connectors/filesystem.md %}">Filesystem</a></td>
         </tr>
         <tr>
          <td>Debezium JSON</td>
-         <td>Apache Kafka</td>
+         <td><a href="{% link dev/table/connectors/kafka.md %}">Apache Kafka</a></td>
         </tr>
         <tr>
          <td>Canal JSON</td>
-         <td>Apache Kafka</td>
+         <td><a href="{% link dev/table/connectors/kafka.md %}">Apache Kafka</a></td>
         </tr>
         <tr>
          <td>Apache Parquet</td>
diff --git a/docs/dev/table/connectors/formats/index.zh.md b/docs/dev/table/connectors/formats/index.zh.md
index 35f073b..6aef539 100644
--- a/docs/dev/table/connectors/formats/index.zh.md
+++ b/docs/dev/table/connectors/formats/index.zh.md
@@ -37,28 +37,28 @@ Flink supports the following formats:
     </thead>
     <tbody>
         <tr>
-          <td><a href="{{ site.baseurl }}/dev/table/connectors/formats/csv.html">CSV</a></td>
-          <td>Apache Kafka,
+          <td><a href="{% link dev/table/connectors/formats/csv.zh.md %}">CSV</a></td>
+          <td><a href="{% link dev/table/connectors/kafka.zh.md %}">Apache Kafka</a>,
           <a href="{% link dev/table/connectors/filesystem.zh.md %}">Filesystem</a></td>
         </tr>
         <tr>
-         <td><a href="{{ site.baseurl }}/dev/table/connectors/formats/json.html">JSON</a></td>
-         <td>Apache Kafka,
+         <td><a href="{% link dev/table/connectors/formats/json.zh.md %}">JSON</a></td>
+         <td><a href="{% link dev/table/connectors/kafka.zh.md %}">Apache Kafka</a>,
           <a href="{% link dev/table/connectors/filesystem.zh.md %}">Filesystem</a>,
           <a href="{% link dev/table/connectors/elasticsearch.zh.md %}">Elasticsearch</a></td>
        </tr>
         <tr>
           <td><a href="{% link dev/table/connectors/formats/avro.zh.md %}">Apache Avro</a></td>
-          <td>Apache Kafka,
+          <td><a href="{% link dev/table/connectors/kafka.zh.md %}">Apache Kafka</a>,
            <a href="{% link dev/table/connectors/filesystem.zh.md %}">Filesystem</a></td>
         </tr>
         <tr>
          <td>Debezium JSON</td>
-         <td>Apache Kafka</td>
+         <td><a href="{% link dev/table/connectors/kafka.zh.md %}">Apache Kafka</a></td>
         </tr>
         <tr>
          <td>Canal JSON</td>
-         <td>Apache Kafka</td>
+         <td><a href="{% link dev/table/connectors/kafka.zh.md %}">Apache Kafka</a></td>
         </tr>
         <tr>
          <td>Apache Parquet</td>
diff --git a/docs/dev/table/connectors/formats/json.md b/docs/dev/table/connectors/formats/json.md
index 892f30c..e4a0df9 100644
--- a/docs/dev/table/connectors/formats/json.md
+++ b/docs/dev/table/connectors/formats/json.md
@@ -86,22 +86,22 @@ Format Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specify what format to use, here should be 'json'.</td>
+      <td>Specify what format to use, here should be <code>'json'</code>.</td>
     </tr>
     <tr>
       <td><h5>json.fail-on-missing-field</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">false</td>
       <td>Boolean</td>
-      <td>Flag to specify whether to fail if a field is missing or not, false by default.</td>
+      <td>Whether to fail if a field is missing or not.</td>
     </tr>
     <tr>
       <td><h5>json.ignore-parse-errors</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">false</td>
       <td>Boolean</td>
-      <td>Flag to skip fields and rows with parse errors instead of failing;
-      fields are set to null in case of errors, false by default.</td>
+      <td>Skip fields and rows with parse errors instead of failing.
+      Fields are set to null in case of errors.</td>
     </tr>
     </tbody>
 </table>
@@ -118,78 +118,78 @@ The following table lists the type mapping from Flink type to JSON type.
 <table class="table table-bordered">
     <thead>
       <tr>
-        <th class="text-left">Flink Data Type</th>
-        <th class="text-center">JSON Data Type</th>
+        <th class="text-left">Flink SQL type</th>
+        <th class="text-left">JSON type</th>
       </tr>
     </thead>
     <tbody>
     <tr>
-      <td>CHAR / VARCHAR / STRING</td>
-      <td>string</td>
+      <td><code>CHAR / VARCHAR / STRING</code></td>
+      <td><code>string</code></td>
     </tr>
     <tr>
-      <td>BOOLEAN</td>
-      <td>boolean</td>
+      <td><code>BOOLEAN</code></td>
+      <td><code>boolean</code></td>
     </tr>
     <tr>
-      <td>BINARY / VARBINARY</td>
-      <td>string with encoding: base64</td>
+      <td><code>BINARY / VARBINARY</code></td>
+      <td><code>string with encoding: base64</code></td>
     </tr>
     <tr>
-      <td>DECIMAL</td>
-      <td>number</td>
+      <td><code>DECIMAL</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>TINYINT</td>
-      <td>number</td>
+      <td><code>TINYINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>SMALLINT</td>
-      <td>number</td>
+      <td><code>SMALLINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>INT</td>
-      <td>number</td>
+      <td><code>INT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>BIGINT</td>
-      <td>number</td>
+      <td><code>BIGINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>FLOAT</td>
-      <td>number</td>
+      <td><code>FLOAT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>DOUBLE</td>
-      <td>number</td>
+      <td><code>DOUBLE</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>DATE</td>
-      <td>string with format: date</td>
+      <td><code>DATE</code></td>
+      <td><code>string with format: date</code></td>
     </tr>
     <tr>
-      <td>TIME</td>
-      <td>string with format: time</td>
+      <td><code>TIME</code></td>
+      <td><code>string with format: time</code></td>
     </tr>
     <tr>
-      <td>TIMESTAMP</td>
-      <td>string with format: date-time</td>
+      <td><code>TIMESTAMP</code></td>
+      <td><code>string with format: date-time</code></td>
     </tr>
     <tr>
-      <td>INTERVAL</td>
-      <td>number</td>
+      <td><code>INTERVAL</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>ARRAY</td>
-      <td>array</td>
+      <td><code>ARRAY</code></td>
+      <td><code>array</code></td>
     </tr>
     <tr>
-      <td>MAP/MULTISET</td>
-      <td>object</td>
+      <td><code>MAP / MULTISET</code></td>
+      <td><code>object</code></td>
     </tr>
     <tr>
-      <td>ROW</td>
-      <td>object</td>
+      <td><code>ROW</code></td>
+      <td><code>object</code></td>
     </tr>
     </tbody>
 </table>
diff --git a/docs/dev/table/connectors/formats/json.zh.md b/docs/dev/table/connectors/formats/json.zh.md
index 892f30c..e4a0df9 100644
--- a/docs/dev/table/connectors/formats/json.zh.md
+++ b/docs/dev/table/connectors/formats/json.zh.md
@@ -86,22 +86,22 @@ Format Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specify what format to use, here should be 'json'.</td>
+      <td>Specify what format to use, here should be <code>'json'</code>.</td>
     </tr>
     <tr>
       <td><h5>json.fail-on-missing-field</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">false</td>
       <td>Boolean</td>
-      <td>Flag to specify whether to fail if a field is missing or not, false by default.</td>
+      <td>Whether to fail if a field is missing or not.</td>
     </tr>
     <tr>
       <td><h5>json.ignore-parse-errors</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">false</td>
       <td>Boolean</td>
-      <td>Flag to skip fields and rows with parse errors instead of failing;
-      fields are set to null in case of errors, false by default.</td>
+      <td>Skip fields and rows with parse errors instead of failing.
+      Fields are set to null in case of errors.</td>
     </tr>
     </tbody>
 </table>
@@ -118,78 +118,78 @@ The following table lists the type mapping from Flink type to JSON type.
 <table class="table table-bordered">
     <thead>
       <tr>
-        <th class="text-left">Flink Data Type</th>
-        <th class="text-center">JSON Data Type</th>
+        <th class="text-left">Flink SQL type</th>
+        <th class="text-left">JSON type</th>
       </tr>
     </thead>
     <tbody>
     <tr>
-      <td>CHAR / VARCHAR / STRING</td>
-      <td>string</td>
+      <td><code>CHAR / VARCHAR / STRING</code></td>
+      <td><code>string</code></td>
     </tr>
     <tr>
-      <td>BOOLEAN</td>
-      <td>boolean</td>
+      <td><code>BOOLEAN</code></td>
+      <td><code>boolean</code></td>
     </tr>
     <tr>
-      <td>BINARY / VARBINARY</td>
-      <td>string with encoding: base64</td>
+      <td><code>BINARY / VARBINARY</code></td>
+      <td><code>string with encoding: base64</code></td>
     </tr>
     <tr>
-      <td>DECIMAL</td>
-      <td>number</td>
+      <td><code>DECIMAL</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>TINYINT</td>
-      <td>number</td>
+      <td><code>TINYINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>SMALLINT</td>
-      <td>number</td>
+      <td><code>SMALLINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>INT</td>
-      <td>number</td>
+      <td><code>INT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>BIGINT</td>
-      <td>number</td>
+      <td><code>BIGINT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>FLOAT</td>
-      <td>number</td>
+      <td><code>FLOAT</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>DOUBLE</td>
-      <td>number</td>
+      <td><code>DOUBLE</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>DATE</td>
-      <td>string with format: date</td>
+      <td><code>DATE</code></td>
+      <td><code>string with format: date</code></td>
     </tr>
     <tr>
-      <td>TIME</td>
-      <td>string with format: time</td>
+      <td><code>TIME</code></td>
+      <td><code>string with format: time</code></td>
     </tr>
     <tr>
-      <td>TIMESTAMP</td>
-      <td>string with format: date-time</td>
+      <td><code>TIMESTAMP</code></td>
+      <td><code>string with format: date-time</code></td>
     </tr>
     <tr>
-      <td>INTERVAL</td>
-      <td>number</td>
+      <td><code>INTERVAL</code></td>
+      <td><code>number</code></td>
     </tr>
     <tr>
-      <td>ARRAY</td>
-      <td>array</td>
+      <td><code>ARRAY</code></td>
+      <td><code>array</code></td>
     </tr>
     <tr>
-      <td>MAP/MULTISET</td>
-      <td>object</td>
+      <td><code>MAP / MULTISET</code></td>
+      <td><code>object</code></td>
     </tr>
     <tr>
-      <td>ROW</td>
-      <td>object</td>
+      <td><code>ROW</code></td>
+      <td><code>object</code></td>
     </tr>
     </tbody>
 </table>
diff --git a/docs/dev/table/connectors/hbase.md b/docs/dev/table/connectors/hbase.md
index 460904e..17508d7 100644
--- a/docs/dev/table/connectors/hbase.md
+++ b/docs/dev/table/connectors/hbase.md
@@ -2,7 +2,7 @@
 title: "HBase SQL Connector"
 nav-title: HBase
 nav-parent_id: sql-connectors
-nav-pos: 9
+nav-pos: 6
 ---
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
@@ -35,8 +35,6 @@ The HBase connector allows for reading from and writing to an HBase cluster. Thi
 
 HBase always works in upsert mode for exchange changelog messages with the external system using a primary key defined on the DDL. The primary key must be defined on the HBase rowkey field (rowkey field must be declared). If the PRIMARY KEY clause is not declared, the HBase connector will take rowkey as the primary key by default.
 
-<span class="label label-danger">Attention</span> HBase as a Lookup Source does not use any cache, data is always queried directly through the HBase client.
-
 Dependencies
 ------------
 
@@ -89,7 +87,7 @@ Connector Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specify what connector to use, here should be 'hbase-1.4'.</td>
+      <td>Specify what connector to use, here should be <code>'hbase-1.4'</code>.</td>
     </tr>
     <tr>
       <td><h5>table-name</h5></td>
@@ -126,7 +124,7 @@ Connector Options
       <td>MemorySize</td>
       <td>Writing option, maximum size in memory of buffered rows for each writing request.
       This can improve performance for writing data to HBase database, but may increase the latency.
-      Can be set to '0' to disable it.
+      Can be set to <code>'0'</code> to disable it.
       </td>
     </tr>
     <tr>
@@ -136,7 +134,7 @@ Connector Options
       <td>Integer</td>
       <td>Writing option, maximum number of rows to buffer for each writing request.
       This can improve performance for writing data to HBase database, but may increase the latency.
-      Can be set to '0' to disable it.
+      Can be set to <code>'0'</code> to disable it.
       </td>
     </tr>
     <tr>
@@ -146,8 +144,8 @@ Connector Options
       <td>Duration</td>
       <td>Writing option, the interval to flush any buffered rows.
       This can improve performance for writing data to HBase database, but may increase the latency.
-      Can be set to '0' to disable it. Note, both 'sink.buffer-flush.max-size' and 'sink.buffer-flush.max-rows'
-      can be set to '0' with the flush interval set allowing for complete async processing of buffered actions.
+      Can be set to <code>'0'</code> to disable it. Note, both <code>'sink.buffer-flush.max-size'</code> and <code>'sink.buffer-flush.max-rows'</code>
+      can be set to <code>'0'</code> with the flush interval set allowing for complete async processing of buffered actions.
       </td>
     </tr>
     </tbody>
@@ -169,13 +167,13 @@ The data type mappings are as follows:
 <table class="table table-bordered">
     <thead>
       <tr>
-        <th class="text-left">Flink Data Type</th>
-        <th class="text-center">HBase conversion</th>
+        <th class="text-left">Flink SQL type</th>
+        <th class="text-left">HBase conversion</th>
       </tr>
     </thead>
     <tbody>
     <tr>
-      <td>CHAR / VARCHAR / STRING</td>
+      <td><code>CHAR / VARCHAR / STRING</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(String s)
@@ -184,7 +182,7 @@ String toString(byte[] b)
       </td>
     </tr>
     <tr>
-      <td>BOOLEAN</td>
+      <td><code>BOOLEAN</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(boolean b)
@@ -193,11 +191,11 @@ boolean toBoolean(byte[] b)
       </td>
     </tr>
     <tr>
-      <td>BINARY / VARBINARY</td>
+      <td><code>BINARY / VARBINARY</code></td>
       <td>Returns <code>byte[]</code> as is.</td>
     </tr>
     <tr>
-      <td>DECIMAL</td>
+      <td><code>DECIMAL</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(BigDecimal v)
@@ -206,7 +204,7 @@ BigDecimal toBigDecimal(byte[] b)
       </td>
     </tr>
     <tr>
-      <td>TINYINT</td>
+      <td><code>TINYINT</code></td>
       <td>
 {% highlight java %}
 new byte[] { val }
@@ -215,7 +213,7 @@ bytes[0] // returns first and only byte from bytes
       </td>
     </tr>
     <tr>
-      <td>SMALLINT</td>
+      <td><code>SMALLINT</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(short val)
@@ -224,7 +222,7 @@ short toShort(byte[] bytes)
       </td>
     </tr>
     <tr>
-      <td>INT</td>
+      <td><code>INT</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(int val)
@@ -233,7 +231,7 @@ int toInt(byte[] bytes)
       </td>
     </tr>
     <tr>
-      <td>BIGINT</td>
+      <td><code>BIGINT</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(long val)
@@ -242,7 +240,7 @@ long toLong(byte[] bytes)
       </td>
     </tr>
     <tr>
-      <td>FLOAT</td>
+      <td><code>FLOAT</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(float val)
@@ -251,7 +249,7 @@ float toFloat(byte[] bytes)
       </td>
     </tr>
     <tr>
-      <td>DOUBLE</td>
+      <td><code>DOUBLE</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(double val)
@@ -260,28 +258,30 @@ double toDouble(byte[] bytes)
       </td>
     </tr>
     <tr>
-      <td>DATE</td>
+      <td><code>DATE</code></td>
       <td>Stores the number of days since epoch as int value.</td>
     </tr>
     <tr>
-      <td>TIME</td>
+      <td><code>TIME</code></td>
       <td>Stores the number of milliseconds of the day as int value.</td>
     </tr>
     <tr>
-      <td>TIMESTAMP</td>
+      <td><code>TIMESTAMP</code></td>
       <td>Stores the milliseconds since epoch as long value.</td>
     </tr>
     <tr>
-      <td>ARRAY</td>
+      <td><code>ARRAY</code></td>
       <td>Not supported</td>
     </tr>
     <tr>
-      <td>MAP / MULTISET</td>
+      <td><code>MAP / MULTISET<code></td>
       <td>Not supported</td>
     </tr>
     <tr>
-      <td>ROW</td>
+      <td><code>ROW</code></td>
       <td>Not supported</td>
     </tr>
     </tbody>
-</table>
\ No newline at end of file
+</table>
+
+{% top %}
\ No newline at end of file
diff --git a/docs/dev/table/connectors/hbase.zh.md b/docs/dev/table/connectors/hbase.zh.md
index 460904e..17508d7 100644
--- a/docs/dev/table/connectors/hbase.zh.md
+++ b/docs/dev/table/connectors/hbase.zh.md
@@ -2,7 +2,7 @@
 title: "HBase SQL Connector"
 nav-title: HBase
 nav-parent_id: sql-connectors
-nav-pos: 9
+nav-pos: 6
 ---
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
@@ -35,8 +35,6 @@ The HBase connector allows for reading from and writing to an HBase cluster. Thi
 
 HBase always works in upsert mode for exchange changelog messages with the external system using a primary key defined on the DDL. The primary key must be defined on the HBase rowkey field (rowkey field must be declared). If the PRIMARY KEY clause is not declared, the HBase connector will take rowkey as the primary key by default.
 
-<span class="label label-danger">Attention</span> HBase as a Lookup Source does not use any cache, data is always queried directly through the HBase client.
-
 Dependencies
 ------------
 
@@ -89,7 +87,7 @@ Connector Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specify what connector to use, here should be 'hbase-1.4'.</td>
+      <td>Specify what connector to use, here should be <code>'hbase-1.4'</code>.</td>
     </tr>
     <tr>
       <td><h5>table-name</h5></td>
@@ -126,7 +124,7 @@ Connector Options
       <td>MemorySize</td>
       <td>Writing option, maximum size in memory of buffered rows for each writing request.
       This can improve performance for writing data to HBase database, but may increase the latency.
-      Can be set to '0' to disable it.
+      Can be set to <code>'0'</code> to disable it.
       </td>
     </tr>
     <tr>
@@ -136,7 +134,7 @@ Connector Options
       <td>Integer</td>
       <td>Writing option, maximum number of rows to buffer for each writing request.
       This can improve performance for writing data to HBase database, but may increase the latency.
-      Can be set to '0' to disable it.
+      Can be set to <code>'0'</code> to disable it.
       </td>
     </tr>
     <tr>
@@ -146,8 +144,8 @@ Connector Options
       <td>Duration</td>
       <td>Writing option, the interval to flush any buffered rows.
       This can improve performance for writing data to HBase database, but may increase the latency.
-      Can be set to '0' to disable it. Note, both 'sink.buffer-flush.max-size' and 'sink.buffer-flush.max-rows'
-      can be set to '0' with the flush interval set allowing for complete async processing of buffered actions.
+      Can be set to <code>'0'</code> to disable it. Note, both <code>'sink.buffer-flush.max-size'</code> and <code>'sink.buffer-flush.max-rows'</code>
+      can be set to <code>'0'</code> with the flush interval set allowing for complete async processing of buffered actions.
       </td>
     </tr>
     </tbody>
@@ -169,13 +167,13 @@ The data type mappings are as follows:
 <table class="table table-bordered">
     <thead>
       <tr>
-        <th class="text-left">Flink Data Type</th>
-        <th class="text-center">HBase conversion</th>
+        <th class="text-left">Flink SQL type</th>
+        <th class="text-left">HBase conversion</th>
       </tr>
     </thead>
     <tbody>
     <tr>
-      <td>CHAR / VARCHAR / STRING</td>
+      <td><code>CHAR / VARCHAR / STRING</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(String s)
@@ -184,7 +182,7 @@ String toString(byte[] b)
       </td>
     </tr>
     <tr>
-      <td>BOOLEAN</td>
+      <td><code>BOOLEAN</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(boolean b)
@@ -193,11 +191,11 @@ boolean toBoolean(byte[] b)
       </td>
     </tr>
     <tr>
-      <td>BINARY / VARBINARY</td>
+      <td><code>BINARY / VARBINARY</code></td>
       <td>Returns <code>byte[]</code> as is.</td>
     </tr>
     <tr>
-      <td>DECIMAL</td>
+      <td><code>DECIMAL</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(BigDecimal v)
@@ -206,7 +204,7 @@ BigDecimal toBigDecimal(byte[] b)
       </td>
     </tr>
     <tr>
-      <td>TINYINT</td>
+      <td><code>TINYINT</code></td>
       <td>
 {% highlight java %}
 new byte[] { val }
@@ -215,7 +213,7 @@ bytes[0] // returns first and only byte from bytes
       </td>
     </tr>
     <tr>
-      <td>SMALLINT</td>
+      <td><code>SMALLINT</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(short val)
@@ -224,7 +222,7 @@ short toShort(byte[] bytes)
       </td>
     </tr>
     <tr>
-      <td>INT</td>
+      <td><code>INT</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(int val)
@@ -233,7 +231,7 @@ int toInt(byte[] bytes)
       </td>
     </tr>
     <tr>
-      <td>BIGINT</td>
+      <td><code>BIGINT</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(long val)
@@ -242,7 +240,7 @@ long toLong(byte[] bytes)
       </td>
     </tr>
     <tr>
-      <td>FLOAT</td>
+      <td><code>FLOAT</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(float val)
@@ -251,7 +249,7 @@ float toFloat(byte[] bytes)
       </td>
     </tr>
     <tr>
-      <td>DOUBLE</td>
+      <td><code>DOUBLE</code></td>
       <td>
 {% highlight java %}
 byte[] toBytes(double val)
@@ -260,28 +258,30 @@ double toDouble(byte[] bytes)
       </td>
     </tr>
     <tr>
-      <td>DATE</td>
+      <td><code>DATE</code></td>
       <td>Stores the number of days since epoch as int value.</td>
     </tr>
     <tr>
-      <td>TIME</td>
+      <td><code>TIME</code></td>
       <td>Stores the number of milliseconds of the day as int value.</td>
     </tr>
     <tr>
-      <td>TIMESTAMP</td>
+      <td><code>TIMESTAMP</code></td>
       <td>Stores the milliseconds since epoch as long value.</td>
     </tr>
     <tr>
-      <td>ARRAY</td>
+      <td><code>ARRAY</code></td>
       <td>Not supported</td>
     </tr>
     <tr>
-      <td>MAP / MULTISET</td>
+      <td><code>MAP / MULTISET<code></td>
       <td>Not supported</td>
     </tr>
     <tr>
-      <td>ROW</td>
+      <td><code>ROW</code></td>
       <td>Not supported</td>
     </tr>
     </tbody>
-</table>
\ No newline at end of file
+</table>
+
+{% top %}
\ No newline at end of file
diff --git a/docs/dev/table/connectors/index.md b/docs/dev/table/connectors/index.md
index 813cf5b..c7fbf6f 100644
--- a/docs/dev/table/connectors/index.md
+++ b/docs/dev/table/connectors/index.md
@@ -29,9 +29,9 @@ Flink's Table API & SQL programs can be connected to other external systems for
 
 This page describes how to register table sources and table sinks in Flink using the natively supported connectors. After a source or sink has been registered, it can be accessed by Table API & SQL statements.
 
-<span class="label label-info">NOTE</span> If you want to implement your own *custom* table source or sink, have a look at the [user-defined sources & sinks page](sourceSinks.html).
+<span class="label label-info">NOTE</span> If you want to implement your own *custom* table source or sink, have a look at the [user-defined sources & sinks page]({% link dev/table/sourceSinks.md %}).
 
-<span class="label label-danger">Attention</span> Flink Table & SQL introduces a new set of connector options since 1.11.0, if you are using the legacy connector options, please refer to the [legacy documentation]({{ site.baseurl }}/dev/table/connect.html).
+<span class="label label-danger">Attention</span> Flink Table & SQL introduces a new set of connector options since 1.11.0, if you are using the legacy connector options, please refer to the [legacy documentation]({% link dev/table/connect.md %}).
 
 * This will be replaced by the TOC
 {:toc}
@@ -52,7 +52,7 @@ Flink natively support various connectors. The following tables list all availab
     </thead>
     <tbody>
     <tr>
-      <td><a href="{{ site.baseurl }}/dev/table/connectors/filesystem.html">Filesystem</a></td>
+      <td><a href="{% link dev/table/connectors/filesystem.md %}">Filesystem</a></td>
       <td></td>
       <td>Bounded and Unbounded Scan, Lookup</td>
       <td>Streaming Sink, Batch Sink</td>
@@ -64,7 +64,7 @@ Flink natively support various connectors. The following tables list all availab
       <td>Streaming Sink, Batch Sink</td>
     </tr>
     <tr>
-      <td><a href="{{ site.baseurl }}/dev/table/connectors/kafka.html">Apache Kafka</a></td>
+      <td><a href="{% link dev/table/connectors/kafka.md %}">Apache Kafka</a></td>
       <td>0.10+</td>
       <td>Unbounded Scan</td>
       <td>Streaming Sink, Batch Sink</td>
@@ -115,7 +115,7 @@ CREATE TABLE MyUserTable (
 </div>
 </div>
 
-In this way the desired connection properties are converted into string-based key-value pairs. So-called [table factories](sourceSinks.html#define-a-tablefactory) create configured table sources, table sinks, and corresponding formats from the key-value pairs. All table factories that can be found via Java's [Service Provider Interfaces (SPI)](https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html) are taken into account when searching for exactly-one matching table factory.
+In this way the desired connection properties are converted into string-based key-value pairs. So-called [table factories]({% link dev/table/sourceSinks.md %}#define-a-tablefactory) create configured table sources, table sinks, and corresponding formats from the key-value pairs. All table factories that can be found via Java's [Service Provider Interfaces (SPI)](https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html) are taken into account when searching for exactly-one matching ta [...]
 
 If no factory can be found or multiple factories match for the given properties, an exception will be thrown with additional information about considered factories and supported properties.
 
@@ -169,11 +169,11 @@ CREATE TABLE MyTable (
 
 Time attributes are essential when working with unbounded streaming tables. Therefore both proctime and rowtime attributes can be defined as part of the schema.
 
-For more information about time handling in Flink and especially event-time, we recommend the general [event-time section](streaming/time_attributes.html).
+For more information about time handling in Flink and especially event-time, we recommend the general [event-time section]({% link dev/table/streaming/time_attributes.md %}).
 
 #### Proctime Attributes
 
-In order to declare a proctime attribute in the schema, you can use [Computed Column syntax]({{ site.baseurl }}/dev/table/sql/create.html#create-table) to declare a computed column which is generated from `PROCTIME()` builtin function.
+In order to declare a proctime attribute in the schema, you can use [Computed Column syntax]({% link dev/table/sql/create.md %}#create-table) to declare a computed column which is generated from `PROCTIME()` builtin function.
 The computed column is a virtual column which is not stored in the physical data.
 
 <div class="codetabs" markdown="1">
@@ -195,7 +195,7 @@ CREATE TABLE MyTable (
 
 In order to control the event-time behavior for tables, Flink provides predefined timestamp extractors and watermark strategies.
 
-Please refer to [CREATE TABLE statements](sql/create.html#create-table) for more information about defining time attributes in DDL.
+Please refer to [CREATE TABLE statements]({% link dev/table/sql/create.md %}#create-table) for more information about defining time attributes in DDL.
 
 The following timestamp extractors are supported:
 
@@ -263,6 +263,6 @@ Make sure to always declare both timestamps and watermarks. Watermarks are requi
 
 ### SQL Types
 
-Please see the [Data Types](types.html) page about how to declare a type in SQL.
+Please see the [Data Types]({% link dev/table/types.md %}) page about how to declare a type in SQL.
 
 {% top %}
\ No newline at end of file
diff --git a/docs/dev/table/connectors/index.zh.md b/docs/dev/table/connectors/index.zh.md
index 7fa8383..c7fbf6f 100644
--- a/docs/dev/table/connectors/index.zh.md
+++ b/docs/dev/table/connectors/index.zh.md
@@ -29,9 +29,9 @@ Flink's Table API & SQL programs can be connected to other external systems for
 
 This page describes how to register table sources and table sinks in Flink using the natively supported connectors. After a source or sink has been registered, it can be accessed by Table API & SQL statements.
 
-<span class="label label-info">NOTE</span> If you want to implement your own *custom* table source or sink, have a look at the [user-defined sources & sinks page](sourceSinks.html).
+<span class="label label-info">NOTE</span> If you want to implement your own *custom* table source or sink, have a look at the [user-defined sources & sinks page]({% link dev/table/sourceSinks.md %}).
 
-<span class="label label-danger">Attention</span> Flink Table & SQL introduces a new set of connector options since 1.11.0, if you are using the legacy connector options, please refer to the [legacy documentation]({{ site.baseurl }}/dev/table/connect.html).
+<span class="label label-danger">Attention</span> Flink Table & SQL introduces a new set of connector options since 1.11.0, if you are using the legacy connector options, please refer to the [legacy documentation]({% link dev/table/connect.md %}).
 
 * This will be replaced by the TOC
 {:toc}
@@ -52,31 +52,31 @@ Flink natively support various connectors. The following tables list all availab
     </thead>
     <tbody>
     <tr>
-      <td><a href="{{ site.baseurl }}/dev/table/connectors/filesystem.html">Filesystem</a></td>
+      <td><a href="{% link dev/table/connectors/filesystem.md %}">Filesystem</a></td>
       <td></td>
       <td>Bounded and Unbounded Scan, Lookup</td>
       <td>Streaming Sink, Batch Sink</td>
     </tr>
     <tr>
-      <td><a href="{% link dev/table/connectors/elasticsearch.zh.md %}">Elasticsearch</a></td>
+      <td><a href="{% link dev/table/connectors/elasticsearch.md %}">Elasticsearch</a></td>
       <td>6.x & 7.x</td>
       <td>Not supported</td>
       <td>Streaming Sink, Batch Sink</td>
     </tr>
     <tr>
-      <td>[Apache Kafka]({{ site.baseurl }}/dev/table/connectors/kafka.html)</td>
+      <td><a href="{% link dev/table/connectors/kafka.md %}">Apache Kafka</a></td>
       <td>0.10+</td>
       <td>Unbounded Scan</td>
       <td>Streaming Sink, Batch Sink</td>
     </tr>
     <tr>
-      <td><a href="{% link dev/table/connectors/jdbc.zh.md %}">JDBC</a></td>
+      <td><a href="{% link dev/table/connectors/jdbc.md %}">JDBC</a></td>
       <td></td>
       <td>Bounded Scan, Lookup</td>
       <td>Streaming Sink, Batch Sink</td>
     </tr>
     <tr>
-      <td><a href="{% link dev/table/connectors/hbase.zh.md %}">Apache HBase</a></td>
+      <td><a href="{% link dev/table/connectors/hbase.md %}">Apache HBase</a></td>
       <td>1.4.x</td>
       <td>Bounded Scan, Lookup</td>
       <td>Streaming Sink, Batch Sink</td>
@@ -115,7 +115,7 @@ CREATE TABLE MyUserTable (
 </div>
 </div>
 
-In this way the desired connection properties are converted into string-based key-value pairs. So-called [table factories](sourceSinks.html#define-a-tablefactory) create configured table sources, table sinks, and corresponding formats from the key-value pairs. All table factories that can be found via Java's [Service Provider Interfaces (SPI)](https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html) are taken into account when searching for exactly-one matching table factory.
+In this way the desired connection properties are converted into string-based key-value pairs. So-called [table factories]({% link dev/table/sourceSinks.md %}#define-a-tablefactory) create configured table sources, table sinks, and corresponding formats from the key-value pairs. All table factories that can be found via Java's [Service Provider Interfaces (SPI)](https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html) are taken into account when searching for exactly-one matching ta [...]
 
 If no factory can be found or multiple factories match for the given properties, an exception will be thrown with additional information about considered factories and supported properties.
 
@@ -169,11 +169,11 @@ CREATE TABLE MyTable (
 
 Time attributes are essential when working with unbounded streaming tables. Therefore both proctime and rowtime attributes can be defined as part of the schema.
 
-For more information about time handling in Flink and especially event-time, we recommend the general [event-time section](streaming/time_attributes.html).
+For more information about time handling in Flink and especially event-time, we recommend the general [event-time section]({% link dev/table/streaming/time_attributes.md %}).
 
 #### Proctime Attributes
 
-In order to declare a proctime attribute in the schema, you can use [Computed Column syntax]({{ site.baseurl }}/dev/table/sql/create.html#create-table) to declare a computed column which is generated from `PROCTIME()` builtin function.
+In order to declare a proctime attribute in the schema, you can use [Computed Column syntax]({% link dev/table/sql/create.md %}#create-table) to declare a computed column which is generated from `PROCTIME()` builtin function.
 The computed column is a virtual column which is not stored in the physical data.
 
 <div class="codetabs" markdown="1">
@@ -195,7 +195,7 @@ CREATE TABLE MyTable (
 
 In order to control the event-time behavior for tables, Flink provides predefined timestamp extractors and watermark strategies.
 
-Please refer to [CREATE TABLE statements](sql/create.html#create-table) for more information about defining time attributes in DDL.
+Please refer to [CREATE TABLE statements]({% link dev/table/sql/create.md %}#create-table) for more information about defining time attributes in DDL.
 
 The following timestamp extractors are supported:
 
@@ -263,6 +263,6 @@ Make sure to always declare both timestamps and watermarks. Watermarks are requi
 
 ### SQL Types
 
-Please see the [Data Types](types.html) page about how to declare a type in SQL.
+Please see the [Data Types]({% link dev/table/types.md %}) page about how to declare a type in SQL.
 
 {% top %}
\ No newline at end of file
diff --git a/docs/dev/table/connectors/jdbc.md b/docs/dev/table/connectors/jdbc.md
index d6f54a3..d01229f 100644
--- a/docs/dev/table/connectors/jdbc.md
+++ b/docs/dev/table/connectors/jdbc.md
@@ -2,7 +2,7 @@
 title: "JDBC SQL Connector"
 nav-title: JDBC
 nav-parent_id: sql-connectors
-nav-pos: 9
+nav-pos: 3
 ---
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
@@ -545,4 +545,6 @@ Flink supports connect to several databases which uses dialect like MySQL, Postg
       <td><code>ARRAY</code></td>
     </tr>
     </tbody>
-</table>
\ No newline at end of file
+</table>
+
+{% top %}
\ No newline at end of file
diff --git a/docs/dev/table/connectors/jdbc.zh.md b/docs/dev/table/connectors/jdbc.zh.md
index 8ce7a89..1fe5a83 100644
--- a/docs/dev/table/connectors/jdbc.zh.md
+++ b/docs/dev/table/connectors/jdbc.zh.md
@@ -2,7 +2,7 @@
 title: "JDBC SQL Connector"
 nav-title: JDBC
 nav-parent_id: sql-connectors
-nav-pos: 9
+nav-pos: 3
 ---
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
@@ -545,4 +545,6 @@ Flink supports connect to several databases which uses dialect like MySQL, Postg
       <td><code>ARRAY</code></td>
     </tr>
     </tbody>
-</table>
\ No newline at end of file
+</table>
+
+{% top %}
\ No newline at end of file
diff --git a/docs/dev/table/connectors/kafka.md b/docs/dev/table/connectors/kafka.md
index fb6ee83..74cf304 100644
--- a/docs/dev/table/connectors/kafka.md
+++ b/docs/dev/table/connectors/kafka.md
@@ -2,7 +2,7 @@
 title: "Apache Kafka SQL Connector"
 nav-title: Kafka
 nav-parent_id: sql-connectors
-nav-pos: 1
+nav-pos: 2
 ---
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
@@ -29,7 +29,7 @@ under the License.
 * This will be replaced by the TOC
 {:toc}
 
-Flink provides an [Apache Kafka](https://kafka.apache.org) connector for reading data from and writing data to Kafka topics.
+The Elasticsearch connector allows for reading data from and writing data into Kafka topics.
 
 Dependencies
 ------------
@@ -44,15 +44,18 @@ For details on Kafka compatibility, please refer to the official [Kafka document
 
 | Kafka Version       | Maven dependency                                          | SQL Client JAR         |
 | :------------------ | :-------------------------------------------------------- | :----------------------|
-| universal           | `flink-connector-kafka{{site.scala_version_suffix}}`      | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
-| 0.11.x              | `flink-connector-kafka-011{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-011{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
-| 0.10.x              | `flink-connector-kafka-010{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-010{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
+| universal           | `flink-connector-kafka{{site.scala_version_suffix}}`      | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for [stable releases]({{ site.stable_baseurl }}/dev/table/connectors/kafka.html) {% endif %} |
+| 0.11.x              | `flink-connector-kafka-011{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-011{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for [stable releases]({{ site.stable_baseurl }}/dev/table/connectors/kafka.html) {% endif %} |
+| 0.10.x              | `flink-connector-kafka-010{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-010{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for [stable releases]({{ site.stable_baseurl }}/dev/table/connectors/kafka.html) {% endif %} |
 
-Flink's streaming connectors are not currently part of the binary distribution.
-See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/projectsetup/dependencies.html).
+The Kafka connectors are not currently part of the binary distribution.
+See how to link with them for cluster execution [here]({% link dev/project-configuration.md %}).
 
 How to create a Kafka table
 ----------------
+
+The example below shows how to create a Kafka table:
+
 <div class="codetabs" markdown="1">
 <div data-lang="SQL" markdown="1">
 {% highlight sql %}
@@ -93,7 +96,7 @@ Connector Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specify what connector to use, for Kafka the options are: 'kafka', 'kafka-0.11', 'kafka-0.10'.</td>
+      <td>Specify what connector to use, for Kafka the options are: <code>'kafka'</code>, <code>'kafka-0.11'</code>, <code>'kafka-0.10'</code>.</td>
     </tr>
     <tr>
       <td><h5>topic</h5></td>
@@ -107,23 +110,23 @@ Connector Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Kafka server connection string.</td>
+      <td>Comma separated list of Kafka brokers.</td>
     </tr>
     <tr>
       <td><h5>properties.group.id</h5></td>
       <td>required by source</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Consumer group in Kafka consumer, no need for Kafka producer</td>
+      <td>The id of the consumer group for Kafka source, optional for Kafka sink.</td>
     </tr>
     <tr>
       <td><h5>format</h5></td>
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Kafka connector requires to specify a format,
-      the supported formats are 'csv', 'json' and 'avro'.
-      Please refer to [Table Formats]({{ site.baseurl }}/dev/table/connect.html#table-formats) section for more details.
+      <td>The format used to deserialize and serialize Kafka messages.
+      The supported formats are <code>'csv'</code>, <code>'json'</code>, <code>'avro'</code>, <code>'debezium-json'</code> and <code>'canal-json'</code>.
+      Please refer to <a href="{% link dev/table/connectors/formats/index.md %}">Formats</a> page for more details and more format options.
       </td>
     </tr>
     <tr>
@@ -131,14 +134,15 @@ Connector Options
       <td>optional</td>
       <td style="word-wrap: break-word;">group-offsets</td>
       <td>String</td>
-      <td>Startup mode for Kafka consumer, valid enumerations are <code>'earliest-offset'</code>, <code>'latest-offset'</code>, <code>'group-offsets'</code>, <code>'timestamp'</code> or <code>'specific-offsets'</code>.</td>
+      <td>Startup mode for Kafka consumer, valid values are <code>'earliest-offset'</code>, <code>'latest-offset'</code>, <code>'group-offsets'</code>, <code>'timestamp'</code> and <code>'specific-offsets'</code>.
+       See the following <a href="#start-reading-position">Start Reading Position</a> for more details.</td>
     </tr>
     <tr>
       <td><h5>scan.startup.specific-offsets</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specifies offsets for each partition in case of 'specific-offsets' startup mode, e.g. `partition:0,offset:42;partition:1,offset:300`.
+      <td>Specify offsets for each partition in case of <code>'specific-offsets'</code> startup mode, e.g. <code>'partition:0,offset:42;partition:1,offset:300'</code>.
       </td>
     </tr>
     <tr>
@@ -146,18 +150,18 @@ Connector Options
       <td>optional</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>Long</td>
-      <td>Timestamp used in case of 'timestamp' startup mode, the 'timestamp' represents the milliseconds that have passed since January 1, 1970 00:00:00.000 GMT, e.g. '1591776274000' for '2020-06-10 16:04:34 +08:00'.</td>
+      <td>Start from the specified epoch timestamp (milliseconds) used in case of <code>'timestamp'</code> startup mode.</td>
     </tr>
     <tr>
       <td><h5>sink.partitioner</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Output partitioning from Flink's partitions into Kafka's partitions. Valid enumerations are
+      <td>Output partitioning from Flink's partitions into Kafka's partitions. Valid values are
       <ul>
-        <li><span markdown="span">`fixed`</span>: each Flink partition ends up in at most one Kafka partition.</li>
-        <li><span markdown="span">`round-robin`</span>: a Flink partition is distributed to Kafka partitions round-robin.</li>
-        <li><span markdown="span">`custom class name`</span>: use a custom FlinkKafkaPartitioner subclass.</li>
+        <li><code>fixed</code>: each Flink partition ends up in at most one Kafka partition.</li>
+        <li><code>round-robin</code>: a Flink partition is distributed to Kafka partitions round-robin.</li>
+        <li>Custom <code>FlinkKafkaPartitioner</code> subclass: e.g. <code>'org.mycompany.MyPartitioner'</code>.</li>
       </ul>
       </td>
     </tr>
@@ -167,7 +171,8 @@ Connector Options
 Features
 ----------------
 
-### Specify the Start Reading Position
+### 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>
@@ -185,25 +190,20 @@ If `specific-offsets` is specified, another config option `scan.startup.specific
 e.g. an option value `partition:0,offset:42;partition:1,offset:300` indicates offset `42` for partition `0` and offset `300` for partition `1`.
 
 ### Sink Partitioning
-The config option `sink.partitioner` specifies output partitioning from Flink's partitions into Kafka's partitions. The valid enumerations are:
-<ul>
-<li><span markdown="span">`fixed`</span>: each Flink partition ends up in at most one Kafka partition.</li>
-<li><span markdown="span">`round-robin`</span>: a Flink partition is distributed to Kafka partitions round-robin.</li>
-<li><span markdown="span">`custom class name`</span>: use a custom FlinkKafkaPartitioner subclass.</li>
-</ul>
-
-<span class="label label-danger">Note</span> If the option value it neither `fixed` nor `round-robin`, then Flink would try to parse as
-the `custom class name`, if that is not a full class name that implements `FlinkKafkaPartitioner`, an exception would be thrown.
 
-If config option `sink.partitioner` is not specified, a partition will be assigned in a round-robin fashion.
+The config option `sink.partitioner` specifies output partitioning from Flink's partitions into Kafka's partitions.
+By default, a Kafka sink writes to at most as many partitions as its own parallelism (each parallel instance of the sink writes to exactly one partition).
+In order to distribute the writes to more partitions or control the routing of rows into partitions, a custom sink partitioner can be provided. The `round-robin` partitioner is useful to avoid an unbalanced partitioning.
+However, it will cause a lot of network connections between all the Flink instances and all the Kafka brokers.
 
 ### Consistency guarantees
-The Kafka SQL sink only supports at-least-once writes now, for exactly-once writes, use the `DataStream` connector, see
-<a href="{{ site.baseurl }}/dev/connectors/kafka.html#kafka-producers-and-fault-tolerance">Kafka Producers And Fault Tolerance</a> for more details.
+
+By default, a Kafka sink ingests data with at-least-once guarantees into a Kafka topic if the query is executed with [checkpointing enabled]({% link dev/stream/state/checkpointing.md %}#enabling-and-configuring-checkpointing).
 
 Data Type Mapping
 ----------------
-Kafka connector requires to specify a format, thus the supported data types are decided by the specific formats it specifies.
-Please refer to <a href="{{ site.baseurl }}/dev/table/connectors/formats/index.html">Table Formats</a> section for more details.
+
+Kafka stores message keys and values as bytes, so Kafka doesn't have schema or data types. The Kafka messages are deserialized and serialized by formats, e.g. csv, json, avro.
+Thus, the data type mapping is determined by specific formats. Please refer to [Formats]({% link dev/table/connectors/formats/index.md %}) pages for more details.
 
 {% top %}
diff --git a/docs/dev/table/connectors/kafka.zh.md b/docs/dev/table/connectors/kafka.zh.md
index fb6ee83..74cf304 100644
--- a/docs/dev/table/connectors/kafka.zh.md
+++ b/docs/dev/table/connectors/kafka.zh.md
@@ -2,7 +2,7 @@
 title: "Apache Kafka SQL Connector"
 nav-title: Kafka
 nav-parent_id: sql-connectors
-nav-pos: 1
+nav-pos: 2
 ---
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
@@ -29,7 +29,7 @@ under the License.
 * This will be replaced by the TOC
 {:toc}
 
-Flink provides an [Apache Kafka](https://kafka.apache.org) connector for reading data from and writing data to Kafka topics.
+The Elasticsearch connector allows for reading data from and writing data into Kafka topics.
 
 Dependencies
 ------------
@@ -44,15 +44,18 @@ For details on Kafka compatibility, please refer to the official [Kafka document
 
 | Kafka Version       | Maven dependency                                          | SQL Client JAR         |
 | :------------------ | :-------------------------------------------------------- | :----------------------|
-| universal           | `flink-connector-kafka{{site.scala_version_suffix}}`      | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
-| 0.11.x              | `flink-connector-kafka-011{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-011{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
-| 0.10.x              | `flink-connector-kafka-010{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-010{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for stable releases {% endif %} |
+| universal           | `flink-connector-kafka{{site.scala_version_suffix}}`      | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for [stable releases]({{ site.stable_baseurl }}/dev/table/connectors/kafka.html) {% endif %} |
+| 0.11.x              | `flink-connector-kafka-011{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-011{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for [stable releases]({{ site.stable_baseurl }}/dev/table/connectors/kafka.html) {% endif %} |
+| 0.10.x              | `flink-connector-kafka-010{{site.scala_version_suffix}}`  | {% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-kafka-010{{site.scala_version_suffix}}/{{site.version}}/flink-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) {% else %} Only available for [stable releases]({{ site.stable_baseurl }}/dev/table/connectors/kafka.html) {% endif %} |
 
-Flink's streaming connectors are not currently part of the binary distribution.
-See how to link with them for cluster execution [here]({{ site.baseurl}}/dev/projectsetup/dependencies.html).
+The Kafka connectors are not currently part of the binary distribution.
+See how to link with them for cluster execution [here]({% link dev/project-configuration.md %}).
 
 How to create a Kafka table
 ----------------
+
+The example below shows how to create a Kafka table:
+
 <div class="codetabs" markdown="1">
 <div data-lang="SQL" markdown="1">
 {% highlight sql %}
@@ -93,7 +96,7 @@ Connector Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specify what connector to use, for Kafka the options are: 'kafka', 'kafka-0.11', 'kafka-0.10'.</td>
+      <td>Specify what connector to use, for Kafka the options are: <code>'kafka'</code>, <code>'kafka-0.11'</code>, <code>'kafka-0.10'</code>.</td>
     </tr>
     <tr>
       <td><h5>topic</h5></td>
@@ -107,23 +110,23 @@ Connector Options
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Kafka server connection string.</td>
+      <td>Comma separated list of Kafka brokers.</td>
     </tr>
     <tr>
       <td><h5>properties.group.id</h5></td>
       <td>required by source</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Consumer group in Kafka consumer, no need for Kafka producer</td>
+      <td>The id of the consumer group for Kafka source, optional for Kafka sink.</td>
     </tr>
     <tr>
       <td><h5>format</h5></td>
       <td>required</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Kafka connector requires to specify a format,
-      the supported formats are 'csv', 'json' and 'avro'.
-      Please refer to [Table Formats]({{ site.baseurl }}/dev/table/connect.html#table-formats) section for more details.
+      <td>The format used to deserialize and serialize Kafka messages.
+      The supported formats are <code>'csv'</code>, <code>'json'</code>, <code>'avro'</code>, <code>'debezium-json'</code> and <code>'canal-json'</code>.
+      Please refer to <a href="{% link dev/table/connectors/formats/index.md %}">Formats</a> page for more details and more format options.
       </td>
     </tr>
     <tr>
@@ -131,14 +134,15 @@ Connector Options
       <td>optional</td>
       <td style="word-wrap: break-word;">group-offsets</td>
       <td>String</td>
-      <td>Startup mode for Kafka consumer, valid enumerations are <code>'earliest-offset'</code>, <code>'latest-offset'</code>, <code>'group-offsets'</code>, <code>'timestamp'</code> or <code>'specific-offsets'</code>.</td>
+      <td>Startup mode for Kafka consumer, valid values are <code>'earliest-offset'</code>, <code>'latest-offset'</code>, <code>'group-offsets'</code>, <code>'timestamp'</code> and <code>'specific-offsets'</code>.
+       See the following <a href="#start-reading-position">Start Reading Position</a> for more details.</td>
     </tr>
     <tr>
       <td><h5>scan.startup.specific-offsets</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Specifies offsets for each partition in case of 'specific-offsets' startup mode, e.g. `partition:0,offset:42;partition:1,offset:300`.
+      <td>Specify offsets for each partition in case of <code>'specific-offsets'</code> startup mode, e.g. <code>'partition:0,offset:42;partition:1,offset:300'</code>.
       </td>
     </tr>
     <tr>
@@ -146,18 +150,18 @@ Connector Options
       <td>optional</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>Long</td>
-      <td>Timestamp used in case of 'timestamp' startup mode, the 'timestamp' represents the milliseconds that have passed since January 1, 1970 00:00:00.000 GMT, e.g. '1591776274000' for '2020-06-10 16:04:34 +08:00'.</td>
+      <td>Start from the specified epoch timestamp (milliseconds) used in case of <code>'timestamp'</code> startup mode.</td>
     </tr>
     <tr>
       <td><h5>sink.partitioner</h5></td>
       <td>optional</td>
       <td style="word-wrap: break-word;">(none)</td>
       <td>String</td>
-      <td>Output partitioning from Flink's partitions into Kafka's partitions. Valid enumerations are
+      <td>Output partitioning from Flink's partitions into Kafka's partitions. Valid values are
       <ul>
-        <li><span markdown="span">`fixed`</span>: each Flink partition ends up in at most one Kafka partition.</li>
-        <li><span markdown="span">`round-robin`</span>: a Flink partition is distributed to Kafka partitions round-robin.</li>
-        <li><span markdown="span">`custom class name`</span>: use a custom FlinkKafkaPartitioner subclass.</li>
+        <li><code>fixed</code>: each Flink partition ends up in at most one Kafka partition.</li>
+        <li><code>round-robin</code>: a Flink partition is distributed to Kafka partitions round-robin.</li>
+        <li>Custom <code>FlinkKafkaPartitioner</code> subclass: e.g. <code>'org.mycompany.MyPartitioner'</code>.</li>
       </ul>
       </td>
     </tr>
@@ -167,7 +171,8 @@ Connector Options
 Features
 ----------------
 
-### Specify the Start Reading Position
+### 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>
@@ -185,25 +190,20 @@ If `specific-offsets` is specified, another config option `scan.startup.specific
 e.g. an option value `partition:0,offset:42;partition:1,offset:300` indicates offset `42` for partition `0` and offset `300` for partition `1`.
 
 ### Sink Partitioning
-The config option `sink.partitioner` specifies output partitioning from Flink's partitions into Kafka's partitions. The valid enumerations are:
-<ul>
-<li><span markdown="span">`fixed`</span>: each Flink partition ends up in at most one Kafka partition.</li>
-<li><span markdown="span">`round-robin`</span>: a Flink partition is distributed to Kafka partitions round-robin.</li>
-<li><span markdown="span">`custom class name`</span>: use a custom FlinkKafkaPartitioner subclass.</li>
-</ul>
-
-<span class="label label-danger">Note</span> If the option value it neither `fixed` nor `round-robin`, then Flink would try to parse as
-the `custom class name`, if that is not a full class name that implements `FlinkKafkaPartitioner`, an exception would be thrown.
 
-If config option `sink.partitioner` is not specified, a partition will be assigned in a round-robin fashion.
+The config option `sink.partitioner` specifies output partitioning from Flink's partitions into Kafka's partitions.
+By default, a Kafka sink writes to at most as many partitions as its own parallelism (each parallel instance of the sink writes to exactly one partition).
+In order to distribute the writes to more partitions or control the routing of rows into partitions, a custom sink partitioner can be provided. The `round-robin` partitioner is useful to avoid an unbalanced partitioning.
+However, it will cause a lot of network connections between all the Flink instances and all the Kafka brokers.
 
 ### Consistency guarantees
-The Kafka SQL sink only supports at-least-once writes now, for exactly-once writes, use the `DataStream` connector, see
-<a href="{{ site.baseurl }}/dev/connectors/kafka.html#kafka-producers-and-fault-tolerance">Kafka Producers And Fault Tolerance</a> for more details.
+
+By default, a Kafka sink ingests data with at-least-once guarantees into a Kafka topic if the query is executed with [checkpointing enabled]({% link dev/stream/state/checkpointing.md %}#enabling-and-configuring-checkpointing).
 
 Data Type Mapping
 ----------------
-Kafka connector requires to specify a format, thus the supported data types are decided by the specific formats it specifies.
-Please refer to <a href="{{ site.baseurl }}/dev/table/connectors/formats/index.html">Table Formats</a> section for more details.
+
+Kafka stores message keys and values as bytes, so Kafka doesn't have schema or data types. The Kafka messages are deserialized and serialized by formats, e.g. csv, json, avro.
+Thus, the data type mapping is determined by specific formats. Please refer to [Formats]({% link dev/table/connectors/formats/index.md %}) pages for more details.
 
 {% top %}