You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "dzygoon (via GitHub)" <gi...@apache.org> on 2024/02/29 00:45:43 UTC

[PR] [Doc][Improve]Add Support Chinese for start-v2/locally/quick-start-flink.md and start-v2/locally/quick-start-spark.md [seatunnel]

dzygoon opened a new pull request, #6412:
URL: https://github.com/apache/seatunnel/pull/6412

   Add Support Chinese for start-v2/locally/quick-start-flink.md and start-v2/locally/quick-start-spark.md


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Doc][Improve]Add Support Chinese for start-v2/locally/quick-start-flink.md and start-v2/locally/quick-start-spark.md [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo merged PR #6412:
URL: https://github.com/apache/seatunnel/pull/6412


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Doc][Improve]Add Support Chinese for start-v2/locally/quick-start-flink.md and start-v2/locally/quick-start-spark.md [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on PR #6412:
URL: https://github.com/apache/seatunnel/pull/6412#issuecomment-2041488203

   Hi @dzygoon, Sorry for the late response, I approved the changes. 
   Thanks


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Doc][Improve]Add Support Chinese for start-v2/locally/quick-start-flink.md and start-v2/locally/quick-start-spark.md [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on code in PR #6412:
URL: https://github.com/apache/seatunnel/pull/6412#discussion_r1518832421


##########
docs/zh/start-v2/locally/quick-start-flink.md:
##########
@@ -0,0 +1,112 @@
+---
+
+sidebar_position: 3
+-------------------
+
+# Flink Engine快速开始
+
+## 步骤 1: 部署SeaTunnel及连接器
+
+在开始前,请确保您已经按照[部署](../../../en/start-v2/locally/deployment.md)中的描述下载并部署了SeaTunnel

Review Comment:
   is `../../../en/start-v2/locally/deployment.md` should be `deployment.md`?



##########
docs/zh/start-v2/locally/quick-start-flink.md:
##########
@@ -0,0 +1,112 @@
+---
+
+sidebar_position: 3
+-------------------
+
+# Flink Engine快速开始
+
+## 步骤 1: 部署SeaTunnel及连接器
+
+在开始前,请确保您已经按照[部署](../../../en/start-v2/locally/deployment.md)中的描述下载并部署了SeaTunnel
+
+## 步骤 2: 部署并配置Flink
+
+请先[下载Flink](https://flink.apache.org/downloads.html)(**需要版本 >= 1.12.0**)。更多信息您可以查看[入门: standalone模式](https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/resource-providers/standalone/overview/)
+
+**配置SeaTunnel**: 修改`config/seatunnel-env.sh`中的设置,它是基于你的引擎在[部署](../../../en/start-v2/locally/deployment.md)时的安装路径。
+将`FLINK_HOME`修改为Flink的部署目录。
+
+## 步骤 3: 添加作业配置文件来定义作业
+
+编辑`config/v2.streaming.conf.template`,它决定了当seatunnel启动后数据输入、处理和输出的方式及逻辑。
+下面是配置文件的示例,它与上面提到的示例应用程序相同。
+
+```hocon
+env {
+  parallelism = 1
+  job.mode = "BATCH"
+}
+
+source {
+  FakeSource {
+    result_table_name = "fake"
+    row.num = 16
+    schema = {
+      fields {
+        name = "string"
+        age = "int"
+      }
+    }
+  }
+}
+
+transform {
+  FieldMapper {
+    source_table_name = "fake"
+    result_table_name = "fake1"
+    field_mapper = {
+      age = age
+      name = new_name
+    }
+  }
+}
+
+sink {
+  Console {
+    source_table_name = "fake1"
+  }
+}
+
+```
+
+关于配置的更多信息请查看[配置的基本概念](../../../en/concept/config.md)
+
+## 步骤 4: 运行SeaTunnel应用程序
+
+您可以通过以下命令启动应用程序
+
+flink版本`1.12.x`到`1.14.x`

Review Comment:
   Please use `Flink` instead of `flink`



##########
docs/zh/start-v2/locally/quick-start-spark.md:
##########
@@ -0,0 +1,118 @@
+---
+
+sidebar_position: 4
+-------------------
+
+# Spark引擎快速开始
+
+## 步骤 1: 部署SeaTunnel及连接器
+
+在开始前,请确保您已经按照[部署](../../../en/start-v2/locally/deployment.md)中的描述下载并部署了SeaTunnel
+
+## 步骤 2: 部署并配置Spark
+
+请先[下载Spark](https://spark.apache.org/downloads.html)(**需要版本 >= 2.4.0**)。 更多信息您可以查看[入门: standalone模式](https://spark.apache.org/docs/latest/spark-standalone.html#installing-spark-standalone-to-a-cluster)
+
+**配置SeaTunnel**: 修改`config/seatunnel-env.sh`中的设置,它是基于你的引擎在[部署](../../../en/start-v2/locally/deployment.md)时的安装路径。
+将`SPARK_HOME`修改为Spark的部署目录。
+
+## 步骤 3: 添加作业配置文件来定义作业
+
+编辑`config/v2.streaming.conf.template`,它决定了当seatunnel启动后数据输入、处理和输出的方式及逻辑。
+下面是配置文件的示例,它与上面提到的示例应用程序相同。
+
+```hocon
+env {
+  parallelism = 1
+  job.mode = "BATCH"
+}
+
+source {
+  FakeSource {
+    result_table_name = "fake"
+    row.num = 16
+    schema = {
+      fields {
+        name = "string"
+        age = "int"
+      }
+    }
+  }
+}
+
+transform {
+  FieldMapper {
+    source_table_name = "fake"
+    result_table_name = "fake1"
+    field_mapper = {
+      age = age
+      name = new_name
+    }
+  }
+}
+
+sink {
+  Console {
+    source_table_name = "fake1"
+  }
+}
+
+```
+
+关于配置的更多信息请查看[配置的基本概念](../../../en/concept/config.md)
+
+## 步骤 4: 运行SeaTunnel应用程序
+
+您可以通过以下命令启动应用程序
+
+spark 2.4.x

Review Comment:
   use Spark instead



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Doc][Improve]Add Support Chinese for start-v2/locally/quick-start-flink.md and start-v2/locally/quick-start-spark.md [seatunnel]

Posted by "dzygoon (via GitHub)" <gi...@apache.org>.
dzygoon commented on PR #6412:
URL: https://github.com/apache/seatunnel/pull/6412#issuecomment-1990778468

   > Hi dzygoon, you did good job, please check and update some places.
   
   
   
   > Hi dzygoon, you did good job, please check and update some places.
   
   done.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org