Hisoka-X commented on code in PR #7388:
URL: https://github.com/apache/seatunnel/pull/7388#discussion_r1724904299
##########
docs/en/start-v2/locally/quick-start-seatunnel-engine.md:
##########
@@ -95,7 +95,103 @@ The SeaTunnel console will print some logs as below:
2022-12-19 11:01:46,491 INFO
org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter -
subtaskIndex=0 rowIndex=16: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT:
mIJDt, 995616438
```
+## Extended Example: Batch Mode from MySQL to Doris
+
+## Step 1: Download the Connector
+
+First, place the required connectors `connector-jdbc` and `connector-doris`
into the `${SEATUNNEL_HOME}/connectors/` directory. You need to run the
following command to install the connectors and add the connector names in the
`${SEATUNNEL_HOME}/config/plugin_config` directory. (Alternatively, you can
manually download the connectors from the [Apache Maven
Repository](https://repo.maven.apache.org/maven2/org/apache/seatunnel/) and
then move them to the `connectors/` directory.)
+
+```bash
+sh bin/install-plugin.sh
+```
+
+## Step 2: Place the MySQL Driver
+
+You need to download the [JDBC driver JAR
package](https://mvnrepository.com/artifact/mysql/mysql-connector-java) and
place it in the `${SEATUNNEL_HOME}/lib/` directory.
+
+## Step 3: Add Job Configuration File to Define the Job
+
+```bash
+cd seatunnel/job/
+
+vim st.conf
+
+env {
+ parallelism = 2
+ job.mode = "BATCH"
+}
+source {
+ Jdbc {
+ url = "jdbc:mysql://localhost:3306/test"
+ driver = "com.mysql.cj.jdbc.Driver"
+ connection_check_timeout_sec = 100
+ user = "user"
+ password = "pwd"
+ table_path = "test.table_name"
+ query = "select * from test.table_name"
+ }
+}
+
+sink {
+ Doris {
+ fenodes = "doris_ip:8030"
+ username = "user"
+ password = "pwd"
+ database = "test_db"
+ table = "table_name"
+ sink.enable-2pc = "true"
+ sink.label-prefix = "test-cdc"
+ doris.config = {
+ format = "json"
+ read_json_by_line="true"
+ }
+ }
+}
+```
+
+For more information about the configuration, please refer to [Basic Concepts
of Configuration](../../concept/config.md).
+
+## Step 4: Run the SeaTunnel Application
+
+You can start the application using the following command:
+
+:::tip
+
+Starting from version 2.3.1, the `-e` parameter in `seatunnel.sh` has been
deprecated. Please use the `-m` parameter instead.
+
+:::
Review Comment:
```suggestion
```
##########
docs/zh/start-v2/locally/quick-start-seatunnel-engine.md:
##########
@@ -94,7 +94,102 @@ SeaTunnel控制台将会打印一些如下日志信息:
2022-12-19 11:01:46,491 INFO
org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter -
subtaskIndex=0 rowIndex=16: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT:
mIJDt, 995616438
```
+## 扩展示例:从 MySQL 到 Doris 批处理模式
+
+## 步骤1:下载连接器
+首先放入所需连接器`connector-jdbc`、`connector-doris`到`${SEATUNNEL_HOME}/connectors/`目录下,您需要执行以下命令来安装连接器并且需要在`${SEATUNNEL_HOME}/config/plugin_config`目录下加入连接器名称:(当然,您也可以从
[Apache Maven
Repository](https://repo.maven.apache.org/maven2/org/apache/seatunnel/)
手动下载连接器,然后将其移动至`connectors/`目录下)。
+
+```bash
+sh bin/install-plugin.sh
+```
+
+## 步骤2:放入 MySQL 驱动
+
+您需要下载 [jdbc driver jar
package](https://mvnrepository.com/artifact/mysql/mysql-connector-java) 驱动,并放置在
`${SEATUNNEL_HOME}/lib/`目录下
+
+## 步骤3:添加作业配置文件来定义作业
+
+```bash
+cd seatunnel/job/
+
+vim st.conf
+
+env {
+ parallelism = 2
+ job.mode = "BATCH"
+}
+source {
+ Jdbc {
+ url = "jdbc:mysql://localhost:3306/test"
+ driver = "com.mysql.cj.jdbc.Driver"
+ connection_check_timeout_sec = 100
+ user = "user"
+ password = "pwd"
+ table_path = "test.table_name"
+ query = "select * from test.table_name"
+ }
+}
+
+sink {
+ Doris {
+ fenodes = "doris_ip:8030"
+ username = "user"
+ password = "pwd"
+ database = "test_db"
+ table = "table_name"
+ sink.enable-2pc = "true"
+ sink.label-prefix = "test-cdc"
+ doris.config = {
+ format = "json"
+ read_json_by_line="true"
+ }
+ }
+}
+```
+
+关于配置的更多信息请查看[配置的基本概念](../../concept/config.md)
+
+## 步骤 4: 运行SeaTunnel应用程序
+
+您可以通过以下命令启动应用程序:
+
+:::tip
+
+从2.3.1版本开始,seatunnel.sh中的-e参数被废弃,请改用-m参数。
+
+:::
Review Comment:
```suggestion
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]