Yikun commented on pull request #35299:
URL: https://github.com/apache/spark/pull/35299#issuecomment-1019972817
```bash
bin/spark-submit \
--master k8s://https://127.0.0.1:60250 \
--deploy-mode cluster \
--conf spark.executor.instances=1 \
--conf spark.kubernetes.namespace=spark \
--conf spark.kubernetes.authenticate.driver.serviceAccountName=spark-sa
\
--conf spark.kubernetes.container.image=spark:latest \
--conf
spark.executor.extraJavaOptions=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005
\
--class org.apache.spark.examples.SparkPi \
--name spark-pi \
local:///opt/spark/examples/jars/spark-examples_2.12-3.3.0-SNAPSHOT.jar
➜ ~ k get po -nspark |grep Running
spark-pi-9e22e17e8bb10987-driver 1/1 Running 0 10m
spark-pi-fc42167e8bb120a7-exec-1 1/1 Running 0 10m
➜ ~ k get configmaps -nspark spark-exec-783d207e8bb1251a-conf-map -o yaml
apiVersion: v1
immutable: true
kind: ConfigMap
metadata:
creationTimestamp: "2022-01-24T10:45:49Z"
labels:
spark-app-selector: spark-b914cefb7e4441918f620feef135babc
spark-role: executor
name: spark-exec-783d207e8bb1251a-conf-map
namespace: spark
ownerReferences:
- apiVersion: v1
controller: true
kind: Pod
name: spark-pi-9e22e17e8bb10987-driver
uid: 8708006a-290c-4f8c-a6ed-caae8e2ba543
resourceVersion: "3118"
uid: ae7dd0cb-a5b9-4752-a003-71bd5cffdcd8
```
Here is complete e2e test to validate the executor configmap namespace is
set as expected with this revert.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]