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 默认配置说明