spark-workload
Type: component. From: the spark-kubernetes-operator addon.
Describes a containerized spark application that can specify resource spec.
Parameters
name string requiredSpecify the spark application name
namespace string requiredSpecify the namespace for spark application to install
type string requiredSpecify the application language type, e.g. "Scala", "Python", "Java" or "R"
pythonVersion stringSpecify the python version
mode string requiredSpecify the deploy mode, e.go "cluster", "client" or "in-cluster-client"
image string requiredSpecify the container image for the driver, executor, and init-container
imagePullPolicy string requiredSpecify the image pull policy for the driver, executor, and init-container
mainClass string requiredSpecify the fully-qualified main class of the Spark application
mainApplicationFile string requiredSpecify the path to a bundled JAR, Python, or R file of the application
sparkVersion string requiredSpecify the version of Spark the application uses
proxyUser stringSpecify the user to impersonate when submitting the application. It maps to the command-line flag “–proxy-user” in spark-submit
arguments []stringSpecify a list of arguments to be passed to the application
sparkConf map[string]stringSpecify the config information carries user-specified Spark configuration properties as they would use the "--conf" option in spark-submit
hadoopConf map[string]stringSpecify 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 stringSpecify 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 stringSpecify 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 requiredType value option: "Always", "Never", "OnFailure"
onSubmissionFailureRetries intSpecify 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 intSpecify the number of times to retry running an application before giving up
onSubmissionFailureRetryInterval intSpecify the interval in seconds between retries on failed submissions
onFailureRetryInterval intSpecify the interval in seconds between retries on failed runs
driver (6) Specify the driver sepc request for the driver pod
cores intSpecify the cores maps to spark.driver.cores or spark.executor.cores for the driver and executors, respectively
coreLimit stringSpecify a hard limit on CPU cores for the pod
memory stringSpecify the amount of memory to request for the pod
labels map[string]stringSpecify 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 requiredmountPath string requiredexecutor (7) Specify the executor spec request for the executor pod
cores intSpecify the cores maps to spark.driver.cores or spark.executor.cores for the driver and executors, respectively
coreLimit stringSpecify a hard limit on CPU cores for the pod
memory stringSpecify the amount of memory to request for the pod
instances intSpecify the number of executor instances
labels map[string]stringSpecify 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 requiredmountPath string requiredvolumes[] (3) Specify the list of Kubernetes volumes that can be mounted by the driver and/or executors
name string requiredhostPath (2)
path string requiredtype string default Directorydeps (6) Specify the dependencies captures all possible types of dependencies of a Spark application
jars []stringSpecify a list of JAR files the Spark application depends on
files []stringSpecify a list of files the Spark application depends on
pyFiles []stringSpecify a list of Python files the Spark application depends on
packages []stringSpecify 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 []stringSpecify a list of “groupId:artifactId”, to exclude while resolving the dependencies provided in Packages to avoid dependency conflicts
repositories []stringSpecify a list of additional remote repositories to search for the maven coordinate given with the “packages” option