Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-43329

driver and executors shared same Kubernetes PVC in Spark 3.4+

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.1
    • Kubernetes
    • None

    Description

      I able to shared same PVC for spark 3.3. but on Spark 3.4 onward. i get below error.  I would like all the executors and driver to mount the same PVC. Is this a bug ? I don't want to use SPARK_EXECUTOR_ID or OnDemand because otherwise each of the executors will use an unique and separate PVC.
       
      Error message is "should contain OnDemand or SPARK_EXECUTOR_ID when requiring multiple executors"
       
      below is how I enabled it pvc in spark 3.3 and it works, but does not work in Spark 3.4

      spark.kubernetes.driver.volumes.persistentVolumeClaim.rwxpvc.options.claimName=rwxpvc 
      --conf spark.kubernetes.driver.volumes.persistentVolumeClaim.rwxpvc.mount.path=/opt/spark/work-dir 
      --conf spark.kubernetes.executor.volumes.persistentVolumeClaim.rwxpvc.options.claimName=rwxpvc 
      --conf spark.kubernetes.executor.volumes.persistentVolumeClaim.rwxpvc.mount.path=/opt/spark/work-dir 
       
      

       
       
       

      Attachments

        Issue Links

          Activity

            People

              dcoliversun Qian Sun
              comet comet
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: