Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33005 Kubernetes GA Preparation
  3. SPARK-33063

Improve error message for insufficient K8s volume confs

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • Kubernetes
    • None

    Description

      Providing error handling when creating k8s volumes and clearer error messages.

      For example, when creating a hostPath volume, if you don't specify 

      hostPath.volumeName.options.path
      

       it fails with a 

       key not found error
      

      which is clear that you are missing a key, but I couldn't find anywhere in the docs that says you need to specify it.

      To reproduce the issue, you have to do the spark-submit command like this for example:

      
      ./bin/spark-submit \
      --master k8s://https://127.0.0.1:32768 \
      --deploy-mode cluster \
      --name spark-app\
      --class class \
      --conf spark.kubernetes.driver.volumes.hostPath.spark.mount.path=/tmp/jars/ \
      --conf spark.kubernetes.executor.volumes.hostPath.spark.mount.path=/tmp/jars/ \
      --conf spark.kubernetes.authenticate.driver.serviceAccountName=spark \
      --conf spark.kubernetes.container.image=spark:latest \
       local:///opt/spark/examples/jars/app.jar
      
      

       

      Attachments

        Activity

          People

            gschiavon German Schiavon Matteo
            gschiavon German Schiavon Matteo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: