This is an automated email from the ASF dual-hosted git repository.

tyrantlucifer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 862e2055ce [Improve][Document] Change deprecated connector name in 
setup.md (#7366)
862e2055ce is described below

commit 862e2055cec6a4428ec4cf67b472ba41ca364d05
Author: Jia Fan <[email protected]>
AuthorDate: Sat Aug 10 15:21:36 2024 +0800

    [Improve][Document] Change deprecated connector name in setup.md (#7366)
---
 docs/en/contribution/setup.md | 38 +++++++++++++++++++++++---------------
 docs/zh/contribution/setup.md | 38 +++++++++++++++++++++++---------------
 2 files changed, 46 insertions(+), 30 deletions(-)

diff --git a/docs/en/contribution/setup.md b/docs/en/contribution/setup.md
index 094799e6f5..b2579e1ee1 100644
--- a/docs/en/contribution/setup.md
+++ b/docs/en/contribution/setup.md
@@ -80,16 +80,21 @@ After all the above things are done, you just finish the 
environment setup and c
 of box. All examples are in module `seatunnel-examples`, you could pick one 
you are interested in, [Running Or Debugging
 It In IDEA](https://www.jetbrains.com/help/idea/run-debug-configuration.html) 
as you wish.
 
-Here we use 
`seatunnel-examples/seatunnel-flink-connector-v2-example/src/main/java/org/apache/seatunnel/example/flink/v2/SeaTunnelApiExample.java`
+Here we use 
`seatunnel-examples/seatunnel-engine-examples/src/main/java/org/apache/seatunnel/example/engine/SeaTunnelEngineExample.java`
 as an example, when you run it successfully you can see the output as below:
 
 ```log
-+I[Ricky Huo, 71]
-+I[Gary, 12]
-+I[Ricky Huo, 93]
-...
-...
-+I[Ricky Huo, 83]
+2024-08-10 11:45:32,839 INFO  
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand - 
+***********************************************
+           Job Statistic Information
+***********************************************
+Start Time                : 2024-08-10 11:45:30
+End Time                  : 2024-08-10 11:45:32
+Total Time(s)             :                   2
+Total Read Count          :                   5
+Total Write Count         :                   5
+Total Failed Count        :                   0
+***********************************************
 ```
 
 ## What's More
@@ -97,23 +102,26 @@ as an example, when you run it successfully you can see 
the output as below:
 All our examples use simple source and sink to make it less dependent and easy 
to run. You can change the example configuration
 in `resources/examples`. You can change your configuration as below, if you 
want to use PostgreSQL as the source and
 sink to console.
+Please note that when using connectors other than FakeSource and Console, you 
need to modify the dependencies in the `pom.xml` file of the corresponding 
submodule of seatunnel-example.
 
 ```conf
 env {
   parallelism = 1
+  job.mode = "BATCH"
 }
-
 source {
-  JdbcSource {
-    driver = org.postgresql.Driver
-    url = "jdbc:postgresql://host:port/database"
-    username = postgres
-    query = "select * from test"
-  }
+    Jdbc {
+        driver = org.postgresql.Driver
+        url = "jdbc:postgresql://host:port/database"
+        username = postgres
+        password = "123456"
+        query = "select * from test"
+        table_path = "database.test"
+    }
 }
 
 sink {
-  ConsoleSink {}
+  Console {}
 }
 ```
 
diff --git a/docs/zh/contribution/setup.md b/docs/zh/contribution/setup.md
index 3527f72c1d..c00c3132c2 100644
--- a/docs/zh/contribution/setup.md
+++ b/docs/zh/contribution/setup.md
@@ -75,39 +75,47 @@ Apache SeaTunnel 使用 `Spotless` 来统一代码风格和格式检查。可以
 完成上面所有的工作后,环境搭建已经完成, 可以直接运行我们的示例了。 所有的示例在 `seatunnel-examples` 模块里, 
你可以随意选择进行编译和调试,参考 [running or debugging
 it in IDEA](https://www.jetbrains.com/help/idea/run-debug-configuration.html)。
 
-我们使用 
`seatunnel-examples/seatunnel-flink-connector-v2-example/src/main/java/org/apache/seatunnel/example/flink/v2/SeaTunnelApiExample.java`
+我们使用 
`seatunnel-examples/seatunnel-engine-examples/src/main/java/org/apache/seatunnel/example/engine/SeaTunnelEngineExample.java`
 作为示例, 运行成功后的输出如下:
 
 ```log
-+I[Ricky Huo, 71]
-+I[Gary, 12]
-+I[Ricky Huo, 93]
-...
-...
-+I[Ricky Huo, 83]
+2024-08-10 11:45:32,839 INFO  
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand - 
+***********************************************
+           Job Statistic Information
+***********************************************
+Start Time                : 2024-08-10 11:45:30
+End Time                  : 2024-08-10 11:45:32
+Total Time(s)             :                   2
+Total Read Count          :                   5
+Total Write Count         :                   5
+Total Failed Count        :                   0
+***********************************************
 ```
 
 ## 更多信息
 
 所有的实例都用了简单的 source 和 sink, 这样可以使得运行更独立和更简单。
 你可以修改 `resources/examples` 中的示例的配置。 例如下面的配置使用 PostgreSQL 作为源,并且输出到控制台。
+请注意引用FakeSource 和 Console 以外的连接器时,需要修改seatunnel-example对应子模块下的`pom.xml`文件中的依赖。
 
 ```conf
 env {
   parallelism = 1
+  job.mode = "BATCH"
 }
-
 source {
-  JdbcSource {
-    driver = org.postgresql.Driver
-    url = "jdbc:postgresql://host:port/database"
-    username = postgres
-    query = "select * from test"
-  }
+    Jdbc {
+        driver = org.postgresql.Driver
+        url = "jdbc:postgresql://host:port/database"
+        username = postgres
+        password = "123456"
+        query = "select * from test"
+        table_path = "database.test"
+    }
 }
 
 sink {
-  ConsoleSink {}
+  Console {}
 }
 ```
 

Reply via email to