This is an automated email from the ASF dual-hosted git repository.
jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 338277b748 [doc](flink-connector) Update the flink connector docs to
the latest (#14856)
338277b748 is described below
commit 338277b74845bc41bb601c349b0ac25951ba6aab
Author: Yun Tang <[email protected]>
AuthorDate: Thu Feb 9 12:48:59 2023 +0800
[doc](flink-connector) Update the flink connector docs to the latest
(#14856)
---
docs/en/docs/ecosystem/flink-doris-connector.md | 26 ++++++++++++----------
docs/zh-CN/docs/ecosystem/flink-doris-connector.md | 23 +++++++++----------
2 files changed, 25 insertions(+), 24 deletions(-)
diff --git a/docs/en/docs/ecosystem/flink-doris-connector.md
b/docs/en/docs/ecosystem/flink-doris-connector.md
index 65a406e50d..a76ac1d58f 100644
--- a/docs/en/docs/ecosystem/flink-doris-connector.md
+++ b/docs/en/docs/ecosystem/flink-doris-connector.md
@@ -32,7 +32,7 @@ under the License.
The Flink Doris Connector can support operations (read, insert, modify,
delete) data stored in Doris through Flink.
-Github: https://github.com/apache/incubator-doris-flink-connector
+Github: https://github.com/apache/doris-flink-connector
* `Doris` table can be mapped to `DataStream` or `Table`.
@@ -68,6 +68,7 @@ Ready to work
export THRIFT_BIN=/opt/homebrew/Cellar/[email protected]/0.13.0/bin/thrift
#export MVN_BIN=
#export JAVA_HOME=
+```
Install `thrift` 0.13.0 (Note: `Doris` 0.15 and the latest builds are based on
`thrift` 0.13.0, previous versions are still built with `thrift` 0.9.3)
Windows:
@@ -92,9 +93,9 @@ Linux:
5.`./configure --without-tests`
6.`make`
7.`make install`
- Check the version after installation is complete:thrift --version
- Note: If you have compiled Doris, you do not need to install thrift, you
can directly use $DORIS_HOME/thirdparty/installed/bin/thrift
-```
+ Check the version after installation is complete:`thrift --version`
+ Note: If you have compiled Doris, you do not need to install thrift, you
can directly use `$DORIS_HOME/thirdparty/installed/bin/thrift`
+
Execute following command in source dir:
@@ -102,16 +103,17 @@ Execute following command in source dir:
sh build.sh
Usage:
- build.sh --flink version --scala version # specify flink and scala version
- build.sh --tag # this is a build from tag
+ build.sh --flink version # specify flink version (after
flink-doris-connector v1.2 and flink-1.15, there is no need to provide scala
version)
+ build.sh --tag # this is a build from tag
e.g.:
- build.sh --flink 1.14.3 --scala 2.12
+ build.sh --flink 1.16.0
build.sh --tag
-Then, for example, execute the command to compile according to the version you
need:
-sh build.sh --flink 1.14.3 --scala 2.12
```
+Then, for example, execute the command to compile according to the version you
need:
+`sh build.sh --flink 1.16.0`
+
-After successful compilation, the file
`flink-doris-connector-1.14_2.12-1.0.0-SNAPSHOT.jar` will be generated in the
`output/` directory. Copy this file to `ClassPath` in `Flink` to use
`Flink-Doris-Connector`. For example, `Flink` running in `Local` mode, put this
file in the `lib/` folder. `Flink` running in `Yarn` cluster mode, put this
file in the pre-deployment package.
+After successful compilation, the file
`flink-doris-connector-1.16-1.3.0-SNAPSHOT.jar` will be generated in the
`target/` directory. Copy this file to `classpath` in `Flink` to use
`Flink-Doris-Connector`. For example, `Flink` running in `Local` mode, put this
file in the `lib/` folder. `Flink` running in `Yarn` cluster mode, put this
file in the pre-deployment package.
**Remarks:**
@@ -137,7 +139,7 @@ Add flink-doris-connector Maven dependencies
**Notes**
-1. Please replace the corresponding Connector and Flink dependency versions
according to different Flink and Scala versions. Version 1.1.0 only supports
Flink1.14
+1. Please replace the corresponding Connector and Flink dependency versions
according to different Flink versions. Version 1.3.0 only supports Flink1.16
2. You can also download the relevant version jar package from
[here](https://repo.maven.apache.org/maven2/org/apache/doris/).
@@ -409,7 +411,7 @@ insert into doris_sink select id,name from cdc_mysql_source;
## Java example
-`samples/doris-demo/` An example of the Java version is provided below for
reference, see
[here](https://github.com/apache/incubator-doris/tree/master/samples/doris-demo/)
+`samples/doris-demo/` An example of the Java version is provided below for
reference, see
[here](https://github.com/apache/doris/tree/master/samples/doris-demo/)
## Best Practices
diff --git a/docs/zh-CN/docs/ecosystem/flink-doris-connector.md
b/docs/zh-CN/docs/ecosystem/flink-doris-connector.md
index d0148561c7..c2e868af9d 100644
--- a/docs/zh-CN/docs/ecosystem/flink-doris-connector.md
+++ b/docs/zh-CN/docs/ecosystem/flink-doris-connector.md
@@ -70,6 +70,7 @@ Flink Doris Connector 可以支持通过 Flink 操作(读取、插入、修改
export THRIFT_BIN=/opt/homebrew/Cellar/[email protected]/0.13.0/bin/thrift
#export MVN_BIN=
#export JAVA_HOME=
+```
安装 `thrift` 0.13.0 版本(注意:`Doris` 0.15 和最新的版本基于 `thrift` 0.13.0 构建,
之前的版本依然使用`thrift` 0.9.3 构建)
Windows:
@@ -95,9 +96,8 @@ export
THRIFT_BIN=/opt/homebrew/Cellar/[email protected]/0.13.0/bin/thrift
5.`./configure --without-tests`
6.`make`
7.`make install`
- 安装完成后查看版本:thrift --version
- 注:如果编译过Doris,则不需要安装thrift,可以直接使用 $DORIS_HOME/thirdparty/installed/bin/thrift
-```
+ 安装完成后查看版本:`thrift --version`
+ 注:如果编译过Doris,则不需要安装thrift,可以直接使用
`$DORIS_HOME/thirdparty/installed/bin/thrift`
在源码目录下执行:
@@ -105,17 +105,16 @@ export
THRIFT_BIN=/opt/homebrew/Cellar/[email protected]/0.13.0/bin/thrift
sh build.sh
Usage:
- build.sh --flink version --scala version # specify flink and scala version
- build.sh --tag # this is a build from tag
+ build.sh --flink version # specify flink version (after
flink-doris-connector v1.2 and flink-1.15, there is no need to provide scala
version)
+ build.sh --tag # this is a build from tag
e.g.:
- build.sh --flink 1.14.3 --scala 2.12
+ build.sh --flink 1.16.0
build.sh --tag
-
-然后按照你需要版本执行命令编译即可,例如:
-sh build.sh --flink 1.14.3 --scala 2.12
```
+然后按照你需要版本执行命令编译即可,例如:
+`sh build.sh --flink 1.16.0`
-编译成功后,会在 `target/`
目录下生成文件,如:`flink-doris-connector-1.14_2.12-1.1.0-SNAPSHOT.jar` 。将此文件复制到 `Flink`
的 `ClassPath` 中即可使用 `Flink-Doris-Connector` 。例如, `Local` 模式运行的 `Flink` ,将此文件放入
`lib/` 文件夹下。 `Yarn` 集群模式运行的 `Flink` ,则将此文件放入预部署包中。
+编译成功后,会在 `target/` 目录下生成文件,如:`flink-doris-connector-1.16-1.3.0-SNAPSHOT.jar`
。将此文件复制到 `Flink` 的 `classpath` 中即可使用 `Flink-Doris-Connector` 。例如, `Local` 模式运行的
`Flink` ,将此文件放入 `lib/` 文件夹下。 `Yarn` 集群模式运行的 `Flink` ,则将此文件放入预部署包中。
**备注**
@@ -142,7 +141,7 @@ enable_http_server_v2 = true
**备注**
-1.请根据不同的 Flink 和 Scala 版本替换对应的 Connector 和 Flink 依赖版本。
+1.请根据不同的 Flink 版本替换对应的 Connector 和 Flink 依赖版本。
2.也可从[这里](https://repo.maven.apache.org/maven2/org/apache/doris/)下载相关版本jar包。
@@ -406,7 +405,7 @@ insert into doris_sink select id,name from cdc_mysql_source;
## Java示例
-`samples/doris-demo/` 下提供了 Java
版本的示例,可供参考,查看点击[这里](https://github.com/apache/incubator-doris/tree/master/samples/doris-demo/)
+`samples/doris-demo/` 下提供了 Java
版本的示例,可供参考,查看点击[这里](https://github.com/apache/doris/tree/master/samples/doris-demo/)
## 最佳实践
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]