From 468a7a169e768d2352ed6ca1dafa116229c48902 Mon Sep 17 00:00:00 2001 From: ChengJie1053 <18033291053@163.com> Date: Mon, 25 Sep 2023 10:26:28 +0800 Subject: [PATCH] Modify spark-k8s-operator.md rest submit task parameters --- .../spark/src/main/resources/spark-k8s-operator.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 cabdd2245a..9a0921f299 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 @@ -48,8 +48,6 @@ POST /api/rest_j/v1/entrance/submit ```json { "executionContent": { - "spark.app.main.class": "org.apache.spark.examples.SparkPi", - "spark.app.args": "spark.app.args", "runType": "jar", "code": "show databases" }, @@ -61,13 +59,13 @@ POST /api/rest_j/v1/entrance/submit "spark.executor.memory": "1g", "spark.driver.memory": "1g", "spark.executor.cores": "1", + "spark.app.main.class": "org.apache.spark.examples.SparkPi", "spark.app.name": "spark-submit-jar-cjtest", "spark.app.resource": "local:///opt/spark/examples/jars/spark-examples_2.12-3.2.1.jar", "spark.executor.instances": 1, - "spark.master": "k8soperator", - "spark.k8s.master.url": "http://ip:port", - "spark.k8s.username": "username", - "spark.k8s.password": "password" + "spark.master":"k8s-operator", + "linkis.spark.k8s.config.file":"~/.kube/config", + "linkis.spark.k8s.serviceAccount":"spark" } } },