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 03:12:50 UTC
[flink] branch release-1.11 updated: [hotfix][avro] Link to Hadoop
Integration in Avro format documentation
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
The following commit(s) were added to refs/heads/release-1.11 by this push:
new a8ed790 [hotfix][avro] Link to Hadoop Integration in Avro format documentation
a8ed790 is described below
commit a8ed7903e62fbaadf6760502ed1b66efe7ec3f4c
Author: Jark Wu <ja...@apache.org>
AuthorDate: Thu Jun 11 11:11:08 2020 +0800
[hotfix][avro] Link to Hadoop Integration in Avro format documentation
This closes #12580
---
docs/dev/table/connectors/formats/avro.md | 19 +++++++++++++++----
docs/dev/table/connectors/formats/avro.zh.md | 19 +++++++++++++++----
2 files changed, 30 insertions(+), 8 deletions(-)
diff --git a/docs/dev/table/connectors/formats/avro.md b/docs/dev/table/connectors/formats/avro.md
index 8870235..93f758a 100644
--- a/docs/dev/table/connectors/formats/avro.md
+++ b/docs/dev/table/connectors/formats/avro.md
@@ -36,9 +36,20 @@ Dependencies
In order to setup the Avro format, the following table provides dependency information for both projects using a build automation tool (such as Maven or SBT) and SQL Client with SQL JAR bundles.
-| Maven dependency | SQL Client JAR |
-| :----------------- | :----------------------|
-| `flink-avro` | [Pre-bundled Hadoop](https://flink.apache.org/downloads.html#additional-components) |
+<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.md %}) for cluster execution.
+</div>
+<div data-lang="Maven dependency" markdown="1">
+{% highlight xml %}
+<dependency>
+ <groupId>org.apache.flink</groupId>
+ <artifactId>flink-avro</artifactId>
+ <version>{{ site.version }}</version>
+</dependency>
+{% endhighlight %}
+</div>
+</div>
How to create a table with Avro format
----------------
@@ -53,7 +64,7 @@ CREATE TABLE user_behavior (
item_id BIGINT,
category_id BIGINT,
behavior STRING,
- ts TIMESTAMP(3),
+ ts TIMESTAMP(3)
) WITH (
'connector' = 'kafka',
'topic' = 'user_behavior',
diff --git a/docs/dev/table/connectors/formats/avro.zh.md b/docs/dev/table/connectors/formats/avro.zh.md
index 8870235..01c9ace 100644
--- a/docs/dev/table/connectors/formats/avro.zh.md
+++ b/docs/dev/table/connectors/formats/avro.zh.md
@@ -36,9 +36,20 @@ Dependencies
In order to setup the Avro format, the following table provides dependency information for both projects using a build automation tool (such as Maven or SBT) and SQL Client with SQL JAR bundles.
-| Maven dependency | SQL Client JAR |
-| :----------------- | :----------------------|
-| `flink-avro` | [Pre-bundled Hadoop](https://flink.apache.org/downloads.html#additional-components) |
+<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.
+</div>
+<div data-lang="Maven dependency" markdown="1">
+{% highlight xml %}
+<dependency>
+ <groupId>org.apache.flink</groupId>
+ <artifactId>flink-avro</artifactId>
+ <version>{{ site.version }}</version>
+</dependency>
+{% endhighlight %}
+</div>
+</div>
How to create a table with Avro format
----------------
@@ -53,7 +64,7 @@ CREATE TABLE user_behavior (
item_id BIGINT,
category_id BIGINT,
behavior STRING,
- ts TIMESTAMP(3),
+ ts TIMESTAMP(3)
) WITH (
'connector' = 'kafka',
'topic' = 'user_behavior',