Upgrading to Apache Airflow 2
summary
Recommended upgrade path: move all Airflow deployments to Python 3, upgrade first to 1.10.15 as a bridge, run airflow-upgrade-check (pip package) which executes about 24 rules and reports fixes but does not mutate code, remove any 66 backport providers before installing Airflow 2.x, update DAG imports to airflow.providers., expect ~19 DB migrations* between 1.15 and 2.0 so prune large task/dag tables and back up the metadata DB, switch to pod template files and kubernetes client objects for the K8s executor, use constraints files and test in dev.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 0:30Why upgrade
- 0:51New features and performance
- 1:44Upgrade to Python 3
- 2:39The bridge release 1.10.15
- 5:51Airflow upgrade check tool
- 10:32Backported providers
- 13:47Import path changes
- 15:16Kubernetes changes
- 16:29Configuration changes
- 17:52Webserver and security
- 19:39Kubernetes executor overhaul
- 20:58Plugins and module management
- 23:19API and CLI changes
- 25:01PIP extras and providers
- 27:56Connections management
- 29:49Database migrations
- 31:53Upgrade procedure
- 38:03Recommendations and tips
