A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content

spark-workload

Type: component. From: the spark-kubernetes-operator addon.

Describes a containerized spark application that can specify resource spec.

Parameters​

name string required
Specify the spark application name
namespace string required
Specify the namespace for spark application to install
type string required
Specify the application language type, e.g. "Scala", "Python", "Java" or "R"
pythonVersion string
Specify the python version
mode string required
Specify the deploy mode, e.go "cluster", "client" or "in-cluster-client"
image string required
Specify the container image for the driver, executor, and init-container
imagePullPolicy string required
Specify the image pull policy for the driver, executor, and init-container
mainClass string required
Specify the fully-qualified main class of the Spark application
mainApplicationFile string required
Specify the path to a bundled JAR, Python, or R file of the application
sparkVersion string required
Specify the version of Spark the application uses
proxyUser string
Specify the user to impersonate when submitting the application. It maps to the command-line flag “–proxy-user” in spark-submit
arguments []string
Specify a list of arguments to be passed to the application
sparkConf map[string]string
Specify the config information carries user-specified Spark configuration properties as they would use the "--conf" option in spark-submit
hadoopConf map[string]string
Specify the config information carries user-specified Hadoop configuration properties as they would use the the "--conf" option in spark-submit. The SparkApplication controller automatically adds prefix "spark.hadoop." to Hadoop configuration properties
sparkConfigMap string
Specify the name of the ConfigMap containing Spark configuration files such as log4j.properties. The controller will add environment variable SPARK_CONF_DIR to the path where the ConfigMap is mounted to
hadoopConfigMap string
Specify the name of the ConfigMap containing Hadoop configuration files such as core-site.xml. The controller will add environment variable HADOOP_CONF_DIR to the path where the ConfigMap is mounted to
restartPolicy (5) Specify the policy on if and in which conditions the controller should restart an application
type string required
Type value option: "Always", "Never", "OnFailure"
onSubmissionFailureRetries int
Specify the number of times to retry submitting an application before giving up. This is best effort and actual retry attempts can be >= the value specified due to caching. These are required if RestartPolicy is OnFailure
onFailureRetries int
Specify the number of times to retry running an application before giving up
onSubmissionFailureRetryInterval int
Specify the interval in seconds between retries on failed submissions
onFailureRetryInterval int
Specify the interval in seconds between retries on failed runs
driver (6) Specify the driver sepc request for the driver pod
cores int
Specify the cores maps to spark.driver.cores or spark.executor.cores for the driver and executors, respectively
coreLimit string
Specify a hard limit on CPU cores for the pod
memory string
Specify the amount of memory to request for the pod
labels map[string]string
Specify the Kubernetes labels to be added to the pod
volumeMounts[] (2) Specify the volumes listed in “.spec.volumes” to mount into the main container’s filesystem
name string required
mountPath string required
executor (7) Specify the executor spec request for the executor pod
cores int
Specify the cores maps to spark.driver.cores or spark.executor.cores for the driver and executors, respectively
coreLimit string
Specify a hard limit on CPU cores for the pod
memory string
Specify the amount of memory to request for the pod
instances int
Specify the number of executor instances
labels map[string]string
Specify the Kubernetes labels to be added to the pod
volumeMounts[] (2) Specify the volumes listed in “.spec.volumes” to mount into the main container’s filesystem
name string required
mountPath string required
volumes[] (3) Specify the list of Kubernetes volumes that can be mounted by the driver and/or executors
name string required
hostPath (2)
path string required
type string default Directory
deps (6) Specify the dependencies captures all possible types of dependencies of a Spark application
jars []string
Specify a list of JAR files the Spark application depends on
files []string
Specify a list of files the Spark application depends on
pyFiles []string
Specify a list of Python files the Spark application depends on
packages []string
Specify a list of maven coordinates of jars to include on the driver and executor classpaths. This will search the local maven repo, then maven central and any additional remote repositories given by the “repositories” option. Each package should be of the form “groupId:artifactId:version”
excludePackages []string
Specify a list of “groupId:artifactId”, to exclude while resolving the dependencies provided in Packages to avoid dependency conflicts
repositories []string
Specify a list of additional remote repositories to search for the maven coordinate given with the “packages” option