spark_on_k8s.airflow.operator_links¶
Implementation reference. These symbols describe how the project works; their presence here does not make them supported application imports. Use the documented entry points and support policy.
SparkOnK8SOperatorLink
¶
Bases: BaseOperatorLink
Operator link for SparkOnK8SOperator.
It allows users to access Spark job UI and spark history UI using SparkOnK8SOperator.
Source code in spark_on_k8s/airflow/operator_links.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
get_link(operator, *, ti_key)
¶
Get link to Spark job UI or Spark history UI.
Source code in spark_on_k8s/airflow/operator_links.py
57 58 59 60 61 62 63 64 65 66 67 | |
persist_spark_history_ui_link(context, task_instance, spark_on_k8s_service_url, spark_app_id)
staticmethod
¶
Persist Spark history UI link to XCom.
Source code in spark_on_k8s/airflow/operator_links.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
persist_spark_ui_link(context, task_instance, spark_on_k8s_service_url, namespace, spark_app_id)
staticmethod
¶
Persist Spark UI link to XCom.
Source code in spark_on_k8s/airflow/operator_links.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |