You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click on the `run_every_minute` box in the centre of the page and then select `Log`:
88
102
89
-
image::airflow-scheduled-job/airflow_8.png[]
103
+
[WARNING]
104
+
====
105
+
In this demo, the logs are not available when the KubernetesExecutor is deployed. See the https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/executor/kubernetes.html#managing-dags-and-logs[Airflow Documentation] for more details.
90
106
91
-
This will navigate to the worker where this job was run (with multiple workers the jobs will be queued and distributed
92
-
to the next free worker) and display the log. In this case the output is a simple printout of the timestamp:
107
+
If you are interested in persisting the logs, please take a look at the xref:logging.adoc[] demo.
108
+
====
93
109
94
110
image::airflow-scheduled-job/airflow_9.png[]
95
111
@@ -112,17 +128,6 @@ asynchronously - and another to poll the running job to report on its status.
112
128
113
129
image::airflow-scheduled-job/airflow_12.png[]
114
130
115
-
The logs for the first task - `spark-pi-submit` - indicate that it has been started, at which point the task exits
116
-
without any further information:
117
-
118
-
image::airflow-scheduled-job/airflow_13.png[]
119
-
120
-
The second task - `spark-pi-monitor` - polls this job and waits for a final result (in this case: `Success`). In this
121
-
case, the actual result of the job (a value of `pi`) is logged by Spark in its driver pod, but more sophisticated jobs
122
-
would persist this in a sink (e.g. a Kafka topic or HBase row) or use the result to trigger subsequent actions.
123
-
124
-
image::airflow-scheduled-job/airflow_14.png[]
125
-
126
131
== Summary
127
132
128
133
This demo showed how DAGs can be made available for Airflow, scheduled, run and then inspected with the Webserver UI.
0 commit comments