Skip to content

Commit

Permalink
[hotfix][avro] Link to Hadoop Integration in Avro format documentation
Browse files Browse the repository at this point in the history
This closes apache#12580
  • Loading branch information
wuchong authored Jun 11, 2020
1 parent f59b8b4 commit 88cc44a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
19 changes: 15 additions & 4 deletions docs/dev/table/connectors/formats/avro.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------
Expand All @@ -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',
Expand Down
19 changes: 15 additions & 4 deletions docs/dev/table/connectors/formats/avro.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------
Expand All @@ -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',
Expand Down

0 comments on commit 88cc44a

Please sign in to comment.