Module Contents

class airflow.providers.cncf.kubernetes.operators.spark_kubernetes.SparkKubernetesOperator(*, application_file: str, namespace: Optional[str] = None, kubernetes_conn_id: str = 'kubernetes_default', api_group: str = '', api_version: str = 'v1beta2', **kwargs)[source]

Bases: airflow.models.BaseOperator

Creates sparkApplication object in kubernetes cluster:

See also

For more detail about Spark Application Object have a look at the reference:

  • application_file (str) -- filepath to kubernetes custom_resource_definition of sparkApplication

  • namespace (str) -- kubernetes namespace to put sparkApplication

  • kubernetes_conn_id (str) -- The kubernetes connection id for the to Kubernetes cluster.

  • api_group (str) -- kubernetes api group of sparkApplication

  • api_version (str) -- kubernetes api version of sparkApplication

template_fields = ['application_file', 'namespace'][source]
template_ext = ['yaml', 'yml', 'json'][source]
ui_color = #f4a460[source]
execute(self, context)[source]

Was this entry helpful?