Skip to content

Commit

Permalink
Added the example of submitting the spark yarn cluster task (apache#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengJie1053 authored Sep 26, 2023
1 parent df956d1 commit c5eb9a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/engine-usage/spark.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 默认配置说明
Expand Down

0 comments on commit c5eb9a2

Please sign in to comment.