Skip to content

Commit

Permalink
[FLINK-32024][docs] Short code related to externalized connector retr…
Browse files Browse the repository at this point in the history
…ieve version from its own data yaml
  • Loading branch information
reswqa committed May 15, 2023
1 parent c8b51a5 commit 253f05b
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/content.zh/docs/connectors/datastream/dynamodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ to setup a table.

To use the connector, add the following Maven dependency to your project:

{{< connector_artifact flink-connector-dynamodb 4.1.0 >}}
{{< connector_artifact flink-connector-dynamodb dynamodb >}}

{{< tabs "ec24a4ae-6a47-11ed-a1eb-0242ac120002" >}}
{{< tab "Java" >}}
Expand Down
4 changes: 2 additions & 2 deletions docs/content.zh/docs/connectors/datastream/firehose.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ To use the connector, add the following Maven dependency to your project:

{{< artifact flink-connector-aws-kinesis-firehose >}}

{{< connector_artifact flink-connector-aws-kinesis-firehose 4.1.0 >}}
{{< connector_artifact flink-connector-aws-kinesis-firehose firehose >}}

{{< py_connector_download_link "firehose" 4.1.0 >}}
{{< py_connector_download_link "firehose" >}}

The `KinesisFirehoseSink` uses [AWS v2 SDK for Java](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/home.html) to write data from a Flink stream into a Firehose delivery stream.

Expand Down
6 changes: 3 additions & 3 deletions docs/content.zh/docs/connectors/datastream/kinesis.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ Kinesis 连接器提供访问 [Amazon Kinesis Data Streams](http://aws.amazon.co
<tbody>
<tr>
<td>Source</td>
<td>{{< connector_artifact flink-connector-kinesis 4.1.0 >}}</td>
<td>{{< connector_artifact flink-connector-kinesis kinesis >}}</td>
</tr>
<tr>
<td>Sink</td>
<td>{{< connector_artifact flink-connector-aws-kinesis-streams 4.1.0 >}}</td>
<td>{{< connector_artifact flink-connector-aws-kinesis-streams kinesis >}}</td>
</tr>
</tbody>
</table>

由于许可证问题,以前的版本中 `flink-connector-kinesis` 工件没有部署到Maven中心库。有关更多信息,请参阅特定版本的文档。

{{< py_connector_download_link "kinesis" 4.1.0 >}}
{{< py_connector_download_link "kinesis" >}}

## 使用亚马逊 Kinesis 流服务
遵循 [Amazon Kinesis Streams Developer Guide](https://docs.aws.amazon.com/streams/latest/dev/learning-kinesis-module-one-create-stream.html) 的指令建立 Kinesis 流。
Expand Down
2 changes: 1 addition & 1 deletion docs/content.zh/docs/connectors/table/dynamodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The DynamoDB connector allows for writing data into [Amazon DynamoDB](https://aw
Dependencies
------------

{{< sql_connector_download_table "dynamodb" 4.1.0 >}}
{{< sql_connector_download_table "dynamodb" >}}

How to create a DynamoDB table
-----------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/content.zh/docs/connectors/table/firehose.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The Kinesis Data Firehose connector allows for writing data into [Amazon Kinesis
Dependencies
------------

{{< sql_connector_download_table "firehose" 4.1.0 >}}
{{< sql_connector_download_table "firehose" >}}

How to create a Kinesis Data Firehose table
-----------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/content.zh/docs/connectors/table/kinesis.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The Kinesis connector allows for reading data from and writing data into [Amazon
Dependencies
------------

{{< sql_connector_download_table "kinesis" 4.1.0 >}}
{{< sql_connector_download_table "kinesis" >}}

Kinesis 连接器目前并不包含在 Flink 的二进制发行版中,请查阅[这里]({{< ref "docs/dev/configuration/overview" >}})了解如何在集群运行中引用 Kinesis 连接器。

Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/connectors/datastream/dynamodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ to setup a table.

To use the connector, add the following Maven dependency to your project:

{{< connector_artifact flink-connector-dynamodb 4.1.0 >}}
{{< connector_artifact flink-connector-dynamodb dynamodb >}}

{{< tabs "ec24a4ae-6a47-11ed-a1eb-0242ac120002" >}}
{{< tab "Java" >}}
Expand Down
4 changes: 2 additions & 2 deletions docs/content/docs/connectors/datastream/firehose.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ to setup a Kinesis Data Firehose delivery stream.

To use the connector, add the following Maven dependency to your project:

{{< connector_artifact flink-connector-aws-kinesis-firehose 4.1.0 >}}
{{< connector_artifact flink-connector-aws-kinesis-firehose firehose >}}

{{< py_connector_download_link "firehose" 4.1.0 >}}
{{< py_connector_download_link "firehose" >}}

The `KinesisFirehoseSink` uses [AWS v2 SDK for Java](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/home.html) to write data from a Flink stream into a Firehose delivery stream.

Expand Down
6 changes: 3 additions & 3 deletions docs/content/docs/connectors/datastream/kinesis.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ To use this connector, add one or more of the following dependencies to your pro
<tbody>
<tr>
<td>Source</td>
<td>{{< connector_artifact flink-connector-kinesis 4.1.0 >}}</td>
<td>{{< connector_artifact flink-connector-kinesis kinesis >}}</td>
</tr>
<tr>
<td>Sink</td>
<td>{{< connector_artifact flink-connector-aws-kinesis-streams 4.1.0 >}}</td>
<td>{{< connector_artifact flink-connector-aws-kinesis-streams kinesis >}}</td>
</tr>
</tbody>
</table>

Due to the licensing issue, the `flink-connector-kinesis` artifact is not deployed to Maven central for the prior versions. Please see the version specific documentation for further information.

{{< py_connector_download_link "kinesis" 4.1.0 >}}
{{< py_connector_download_link "kinesis" >}}

## Using the Amazon Kinesis Streams Service
Follow the instructions from the [Amazon Kinesis Streams Developer Guide](https://docs.aws.amazon.com/streams/latest/dev/learning-kinesis-module-one-create-stream.html)
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/connectors/table/dynamodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The DynamoDB connector allows for writing data into [Amazon DynamoDB](https://aw
Dependencies
------------

{{< sql_connector_download_table "dynamodb" 4.1.0 >}}
{{< sql_connector_download_table "dynamodb" >}}

How to create a DynamoDB table
-----------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/connectors/table/firehose.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The Kinesis Data Firehose connector allows for writing data into [Amazon Kinesis
Dependencies
------------

{{< sql_connector_download_table "firehose" 4.1.0 >}}
{{< sql_connector_download_table "firehose" >}}

How to create a Kinesis Data Firehose table
-----------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/connectors/table/kinesis.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The Kinesis connector allows for reading data from and writing data into [Amazon
Dependencies
------------

{{< sql_connector_download_table "kinesis" 4.1.0 >}}
{{< sql_connector_download_table "kinesis" >}}

The Kinesis connector is not part of the binary distribution.
See how to link with it for cluster execution [here]({{< ref "docs/dev/configuration/overview" >}}).
Expand Down
1 change: 1 addition & 0 deletions docs/data/dynamodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# limitations under the License.
################################################################################

version: 4.1.0
variants:
- maven: flink-connector-dynamodb
sql_url: https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-dynamodb/$full_version/flink-sql-connector-dynamodb-$full_version.jar
1 change: 1 addition & 0 deletions docs/data/firehose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# limitations under the License.
################################################################################

version: 4.1.0
variants:
- maven: flink-connector-aws-kinesis-firehose
sql_url: https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-aws-kinesis-firehose/$full_version/flink-sql-connector-aws-kinesis-firehose-$full_version.jar
1 change: 1 addition & 0 deletions docs/data/kinesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# limitations under the License.
################################################################################

version: 4.1.0
variants:
- maven: flink-connector-kinesis
sql_url: https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kinesis/$full_version/flink-sql-connector-kinesis-$full_version.jar

0 comments on commit 253f05b

Please sign in to comment.