chia7712 opened a new pull request #35215:
URL: https://github.com/apache/spark/pull/35215


   ### What changes were proposed in this pull request?
   #34983 added the namespace to ConfigMap. However, the confFileMap does not 
have namespace value, so it assigns the ConfigMap to "default" namespace. When 
we submit spark application in non-default namespace, it causes error since it 
can't find the configmap in non-default namespace
   
   
   ### Why are the changes needed?
   The bug obstructs us from submitting spark application to non-default 
namespace. see following error message:
   ```
   kubelet MountVolume.SetUp failed for volume "spark-conf-volume-driver" : 
configmap "spark-drv-2e1f4c7e54c2d4f3-conf-map" not found
   ```
   
   The above error can be reproduced by following command.
   ```sh
   export SPARK_VERSION=3.3.0-SNAPSHOT && ./bin/spark-submit \
       --master k8s://https://k8s00:6443 \
       --deploy-mode cluster \
       --name sparkPi \
       --class org.apache.spark.examples.SparkPi \
       --conf spark.kubernetes.authenticate.driver.serviceAccountName=default \
       --conf spark.kubernetes.namespace=yunikorn \
       --conf 
spark.kubernetes.container.image=ghcr.io/chia7712/spark:${SPARK_VERSION} \
       local:///opt/spark/examples/jars/spark-examples_2.12-${SPARK_VERSION}.jar
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Pass Integration Test and CIs.
   


-- 
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]

Reply via email to