This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/linkis.git
The following commit(s) were added to refs/heads/master by this push:
new 5fa1697b0 Modify spark-k8s-operator.md (#4837)
5fa1697b0 is described below
commit 5fa1697b0e84f55aac752a869b44480953e55e37
Author: ChengJie1053 <[email protected]>
AuthorDate: Wed Aug 2 20:12:10 2023 +0800
Modify spark-k8s-operator.md (#4837)
---
.../spark/src/main/resources/spark-k8s-operator.md | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git
a/linkis-engineconn-plugins/spark/src/main/resources/spark-k8s-operator.md
b/linkis-engineconn-plugins/spark/src/main/resources/spark-k8s-operator.md
index 542fbceb9..cabdd2245 100644
--- a/linkis-engineconn-plugins/spark/src/main/resources/spark-k8s-operator.md
+++ b/linkis-engineconn-plugins/spark/src/main/resources/spark-k8s-operator.md
@@ -82,7 +82,20 @@ POST /api/rest_j/v1/entrance/submit
}
```
-### 7. Reference document
+### 7. Submitting tasks via Linkis-cli
+
+```text
+sh ./bin/linkis-cli --mode once -labelMap engineConnMode=once -engineType
spark-3.2.1 -codeType jar -submitUser hadoop -proxyUser hadoop
-jobContentMap runType=jar -jobContentMap
spark.app.main.class=org.apache.spark.examples.SparkPi -confMap
spark.app.name=spark-submit-jar-test -confMap
spark.app.resource=local:///opt/spark/examples/jars/spark-examples_2.12-3.2.1.jar
-confMap spark.executor.instances=1 -confMap
spark.kubernetes.file.upload.path=local:///opt/spark/tmp -c [...]
+```
+
+### 8. Matters needing attention
+
+```text
+You need to check whether hosts is configured,Such as:
+k8s-master-ip lb.kubesphere.local
+```
+
+### 9. Reference document
```text
https://github.com/GoogleCloudPlatform/spark-on-k8s-operator
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]