It is easy to create apache airflow DAGs, but it is really hard to create meaningful architectures w/ Airflow.
- airflow-sandbox : meaningful scenario w/ GCP Cloud Composer
- airflow-sandbox/core : fundamentals of airflow
-
Create environment w/
conda create -n airflow-sandbox python=3.7 anacondaconda activate airflow-sandbox
-
Install airflow packages
pip install apache-airflow[async,crypto,jdbc,gcp_api,google_auth]
-
Start airflow on your local
airflow initdbls ~/airflowmkdir ~/airflow/dagsairflow webserver -p 8080airflow scheduler- Open
localhost:8080in your web browser
-
Copy dag files into dags folder like
cp basic-dag.py ~/airflow/dags -
To test the dag
airflow list_dagsairflow list_tasks my_first_dag_v2airflow test my_first_dag_v2 print_hello 2019-05-22
