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

peacewong pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/linkis-website.git


The following commit(s) were added to refs/heads/dev by this push:
     new c5eb9a2faca Added the example of submitting the spark yarn cluster 
task (#749)
c5eb9a2faca is described below

commit c5eb9a2faca95d3888ed73d161b69976a519a897
Author: ChengJie1053 <[email protected]>
AuthorDate: Tue Sep 26 20:13:20 2023 +0800

    Added the example of submitting the spark yarn cluster task (#749)
---
 docs/engine-usage/spark.md                                         | 7 +++++++
 .../docusaurus-plugin-content-docs/current/engine-usage/spark.md   | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/docs/engine-usage/spark.md b/docs/engine-usage/spark.md
index 2c9c90b56a0..dab25c22f10 100644
--- a/docs/engine-usage/spark.md
+++ b/docs/engine-usage/spark.md
@@ -178,6 +178,13 @@ Token-User: linkis
 }
 ```
 
+### 3.5 Submitting spark yarn cluster tasks via `Linkis-cli`
+
+```shell
+# Use `engingeConnRuntimeMode=yarnCluster` to specify the yarn cluster mode
+sh ./bin/linkis-cli -engineType spark-3.2.1 -codeType sql -labelMap 
engingeConnRuntimeMode=yarnCluster -submitUser hadoop -proxyUser hadoop -code 
"select 123"
+```
+
 ## 4. Engine configuration instructions
 
 ### 4.1 Default Configuration Description
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/engine-usage/spark.md 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/engine-usage/spark.md
index 0ff552df319..8374d05b6e5 100644
--- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/engine-usage/spark.md
+++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/engine-usage/spark.md
@@ -176,6 +176,13 @@ Token-User: linkis
 }
 ```
 
+### 3.5 通过 `Linkis-cli` 提交spark yarn cluster任务
+
+```shell
+# 使用 `engingeConnRuntimeMode=yarnCluster` 来指定yarn cluster模式
+sh ./bin/linkis-cli -engineType spark-3.2.1 -codeType sql -labelMap 
engingeConnRuntimeMode=yarnCluster -submitUser hadoop -proxyUser hadoop -code 
"select 123"
+```
+
 ## 4.引擎配置说明
 
 ### 4.1 默认配置说明


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to