From c5eb9a2faca95d3888ed73d161b69976a519a897 Mon Sep 17 00:00:00 2001 From: ChengJie1053 <18033291053@163.com> Date: Tue, 26 Sep 2023 20:13:20 +0800 Subject: [PATCH] Added the example of submitting the spark yarn cluster task (#749) --- docs/engine-usage/spark.md | 7 +++++++ .../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 默认配置说明