airflow.providers.cncf.kubernetes.operators.custom_object_launcher
¶
Launches Custom object.
Module Contents¶
Classes¶
Spark job spec. |
|
Spark kubernetes spec. |
|
spark resources. |
|
Status of the PODs. |
|
Launches PODS. |
Functions¶
|
Check if an Exception indicates a transient error and warrants retrying. |
- airflow.providers.cncf.kubernetes.operators.custom_object_launcher.should_retry_start_spark_job(exception)[source]¶
Check if an Exception indicates a transient error and warrants retrying.
- class airflow.providers.cncf.kubernetes.operators.custom_object_launcher.SparkJobSpec(**entries)[source]¶
Spark job spec.
- class airflow.providers.cncf.kubernetes.operators.custom_object_launcher.KubernetesSpec(**entries)[source]¶
Spark kubernetes spec.
- class airflow.providers.cncf.kubernetes.operators.custom_object_launcher.SparkResources(driver=None, executor=None)[source]¶
spark resources.
- class airflow.providers.cncf.kubernetes.operators.custom_object_launcher.CustomObjectStatus[source]¶
Status of the PODs.
- class airflow.providers.cncf.kubernetes.operators.custom_object_launcher.CustomObjectLauncher(name, namespace, kube_client, custom_obj_api, template_body=None)[source]¶
Bases:
airflow.utils.log.logging_mixin.LoggingMixin
Launches PODS.
- start_spark_job(image=None, code_path=None, startup_timeout=600)[source]¶
Launch the pod synchronously and waits for completion.
- Parameters
image – image name
code_path – path to the .py file for python and jar file for scala
startup_timeout (int) – Timeout for startup of the pod (if pod is pending for too long, fails task)
- Returns