Hisoka-X commented on code in PR #8505:
URL: https://github.com/apache/seatunnel/pull/8505#discussion_r1914278656


##########
docs/zh/other-engine/spark.md:
##########
@@ -0,0 +1,109 @@
+# SeaTunnel 通过 Spark 引擎运行
+
+Spark 是一个强大的高性能分布式计算处理引擎。有关它的更多信息,您可以搜索"Apache Spark"
+
+
+### 如何在作业中设置 Spark 配置信息
+
+例:
+我为某项工作设置了一些 spark 配置项
+
+```
+env {
+  spark.app.name = "example"
+  spark.sql.catalogImplementation = "hive"
+  spark.executor.memory= "2g"
+  spark.executor.instances = "2"
+  spark.yarn.priority = "100'
+  hive.exec.dynamic.partition.mode = "nonstrict"
+  spark.dynamicAllocation.enabled="false"
+}
+```
+
+### 命令行示例
+
+#### Spark on Yarn集群
+
+```
+./bin/start-seatunnel-spark-3-connector-v2.sh --master yarn --deploy-mode 
cluster --config config/example.conf
+```
+
+#### Spark on Yarn集群
+
+```
+./bin/start-seatunnel-spark-3-connector-v2.sh --master yarn --deploy-mode 
client --config config/example.conf
+```
+
+### 如何设置简单的 Spark 作业
+
+这是通过 Spark 运行的一个简单作业。会将随机生成的数据输出到控制台
+
+```
+env {
+  # common parameter
+  parallelism = 1
+
+  # spark special parameter
+  spark.app.name = "example"
+  spark.sql.catalogImplementation = "hive"
+  spark.executor.memory= "2g"
+  spark.executor.instances = "1"
+  spark.yarn.priority = "100"
+  hive.exec.dynamic.partition.mode = "nonstrict"
+  spark.dynamicAllocation.enabled="false"
+}
+
+source {
+  FakeSource {
+  schema = {
+    fields {
+      c_map = "map<string, array<int>>"
+      c_array = "array<int>"
+      c_string = string
+      c_boolean = boolean
+      c_tinyint = tinyint
+      c_smallint = smallint
+      c_int = int
+      c_bigint = bigint
+      c_float = float
+      c_double = double
+      c_decimal = "decimal(30, 8)"
+      c_null = "null"
+      c_bytes = bytes
+      c_date = date
+      c_timestamp = timestamp
+      c_row = {
+        c_map = "map<string, map<string, string>>"
+        c_array = "array<int>"
+        c_string = string
+        c_boolean = boolean
+        c_tinyint = tinyint
+        c_smallint = smallint
+        c_int = int
+        c_bigint = bigint
+        c_float = float
+        c_double = double
+        c_decimal = "decimal(30, 8)"
+        c_null = "null"
+        c_bytes = bytes
+        c_date = date
+        c_timestamp = timestamp
+      }
+    }
+  }
+}
+}
+
+transform {
+  # 如果您想获取有关如何配置 seatunnel 的更多信息并查看转换插件的完整列表,
+  # 请访问 https://seatunnel.apache.org/docs/transform-v2/sql

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]

Reply via email to