Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.1.0
-
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