I have a Spark based Kubernetes cluster where I am using spark-submit
to submit the jobs on cluster as needed.
e.g.
spark-submit \
--master spark://my-spark-master-svc:7077 \
--class com.Main \
examples/jars/my-spark-application.jar
Here I have uploaded file my-spark-application.jar
using kubectl cp
under the directory examples/jars
on the master Pod/container before I run the spark-submit
command.
Another option could be by mounting a Volume on the cluster and share the jar on the volume that way.
What is the typical way to share the application jar with the spark cluster while using spark-submit
on Kubernetes?