- Airflow learning with some basic operators
- BashOperator
- SqliteOperator
- HttpSensor & SimpleHttpOperator
- PythonOperator
- Building the simplest flow in airflow.
- Learn to exchance SMALL data between airflow tasks.
ti.xcom_push(key=[xcom_key], value=[value to be stored])
ti.xcom_pull(key=[xcom_key], task_ids=ls_taskid)
- Bash operator would store xcom automatically, to cancel the storing action
- add
do_xcom_push=False
in the task.
- learn
BranchPythonOperator
and 'trigger_rule'
- Require 3 containers to compose the airflow service.
wget http://airflow.apache.org/docs/apache-airflow/stable/docker-compose.yaml
- This file defines the required services we need to compose an airflow app.
- Test it via:
- cd airflow-local
- docker-compose -f docker-compose.yaml up -d
- Then you could see your service with
docker ps
and use airflow UI on localhost:8080 in your browser.
- Default downloaded docker-compose.yaml uses celery executor.
- See airflow-local/docker-compose-local.yaml