未验证 提交 52ddd9b0 编写于 作者: Q Qingsheng Ren 提交者: GitHub

[FLINK-18382][docs-zh] Translate Kafka SQL connector documentation into Chinese

This closes #13876
上级 8da60525
<!--
~ 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.
-->
<p>为使用 {{ include.connector.name }} {{ include.connector.category }},以下依赖在使用自动化构建工具(如 Maven
或 SBT)构建的工程和带有 SQL JAR 的 SQL 客户端时都必须提供。</p>
{% comment %}
The 'liquify' filter makes it possible to include liquid variables such as e.g. site.version.
{% endcomment %}
{% if include.connector.versions == nil %}
<table>
<thead>
<tr>
<th style="text-align: left">Maven 依赖</th>
<th style="text-align: left">SQL 客户端 JAR</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left"><code class="highlighter-rouge">{{ include.connector.maven | liquify }}</code></td>
{% if include.connector.built-in %}
<td style="text-align: left">Built-in</td>
{% elsif site.is_stable %}
{% if include.connector.sql-url != nil %}
<td style="text-align: left"><a href="{{ include.connector.sql-url | liquify }}">下载</a></td>
{% else %}
<td style="text-align: left">目前无 SQL JAR 可用</td>
{% endif %}
{% else %}
<td style="text-align: left">只在稳定版本可用</td>
{% endif %}
</tr>
</tbody>
</table>
{% else %}
<table>
<thead>
<tr>
<th style="text-align: left">{{ include.connector.name }} 版本</th>
<th style="text-align: left">Maven 依赖</th>
<th style="text-align: left">SQL 客户端 JAR</th>
</tr>
</thead>
<tbody>
{% for version in include.connector.versions %}
<tr>
<td style="text-align: left">{{ version.version | liquify }}</td>
<td style="text-align: left"><code class="highlighter-rouge">{{ version.maven | liquify }}</code></td>
{% if include.connector.built-in %}
<td style="text-align: left">内置</td>
{% elsif include.connector.no-sql-jar %}
{% elsif site.is_stable %}
{% if version.sql-url != nil %}
<td style="text-align: left"><a href="{{ version.sql-url | liquify }}">下载</a></td>
{% else %}
<td style="text-align: left">目前无 SQL JAR 可用</td>
{% endif %}
{% else %}
<td style="text-align: left">只在稳定版本可用</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
......@@ -39,7 +39,7 @@ Dependencies
------------
{% assign connector = site.data.sql-connectors['elastic'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -41,7 +41,7 @@ Avro Schema Registry 格式只能与[Apache Kafka SQL连接器]({% link dev/tabl
------------
{% assign connector = site.data.sql-connectors['avro-confluent'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -35,7 +35,7 @@ under the License.
------------
{% assign connector = site.data.sql-connectors['avro'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -47,7 +47,7 @@ Flink 还支持将 Flink SQL 中的 INSERT / UPDATE / DELETE 消息编码为 Can
------------
{% assign connector = site.data.sql-connectors['canal'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -35,7 +35,7 @@ under the License.
------------
{% assign connector = site.data.sql-connectors['csv'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -47,13 +47,13 @@ Flink 还支持将 Flink SQL 中的 INSERT / UPDATE / DELETE 消息编码为 Deb
<div class="codetabs" markdown="1">
<div data-lang="Debezium Avro" markdown="1">
{% assign connector = site.data.sql-connectors['debezium-avro-confluent'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
</div>
<div data-lang="Debezium Json" markdown="1">
{% assign connector = site.data.sql-connectors['debezium-json'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
</div>
......
......@@ -35,7 +35,7 @@ under the License.
------------
{% assign connector = site.data.sql-connectors['json'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -45,7 +45,7 @@ Dependencies
------------
{% assign connector = site.data.sql-connectors['maxwell'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -35,7 +35,7 @@ under the License.
------------
{% assign connector = site.data.sql-connectors['orc'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -35,7 +35,7 @@ under the License.
------------
{% assign connector = site.data.sql-connectors['parquet'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -37,7 +37,7 @@ Raw format 允许读写原始(基于字节)值作为单个列。
------------
{% assign connector = site.data.sql-connectors['raw'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -39,7 +39,7 @@ HBase 连接器在 upsert 模式下运行,可以使用 DDL 中定义的主键
------------
{% assign connector = site.data.sql-connectors['hbase'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -39,7 +39,7 @@ Dependencies
------------
{% assign connector = site.data.sql-connectors['jdbc'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -536,7 +536,7 @@ See more about how to use the CDC formats in [debezium-json]({% link dev/table/c
### Sink Partitioning
The config option `sink.partitioner` specifies output partitioning from Flink's partitions into Kafka's partitions.
By default, Flink uses the [Kafka default partitioner](https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/producer/internals/DefaultPartitioner.java) to parititon records. It uses the [sticky partition strategy](https://www.confluent.io/blog/apache-kafka-producer-improvements-sticky-partitioner/) for records with null keys and uses a murmur2 hash to compute the partition for a record with the key defined.
By default, Flink uses the [Kafka default partitioner](https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/producer/internals/DefaultPartitioner.java) to partition records. It uses the [sticky partition strategy](https://www.confluent.io/blog/apache-kafka-producer-improvements-sticky-partitioner/) for records with null keys and uses a murmur2 hash to compute the partition for a record with the key defined.
In order to control the routing of rows into partitions, a custom sink partitioner can be provided. The 'fixed' partitioner will write the records in the same Flink partition into the same Kafka partition, which could reduce the cost of the network connections.
......
......@@ -35,7 +35,7 @@ Dependencies
------------
{% assign connector = site.data.sql-connectors['kinesis'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
......@@ -39,7 +39,7 @@ Upsert Kafka 连接器支持以 upsert 方式从 Kafka topic 中读取数据并
------------
{% assign connector = site.data.sql-connectors['upsert-kafka'] %}
{% include sql-connector-download-table.html
{% include sql-connector-download-table.zh.html
connector=connector
%}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册