Area: Ingestion
Sub-Area: Airflow Integration
Applies to: OSS + Cloud
Issue
DataHub release notes say that acryl-datahub-airflow-plugin dropped support for Airflow versions below 2.7. You want to know if your Airflow version still works with the new plugin, and which plugin version to install.
You Might Be Asking
- Will my Airflow 2.6 installation still work with the new plugin?
- Does "dropped support" mean it won't work at all or just isn't tested?
- What happens if I upgrade the plugin without upgrading Airflow?
- Should I upgrade Airflow before upgrading the DataHub plugin?
Cause
The plugin uses DataHub OSS release numbers, such as 1.6.0. DataHub Cloud versions, such as 0.3.13.2, are not plugin versions. No plugin release has the number 0.3.13.2.
DataHub no longer supports Airflow 2.x, because Apache ended the 2.x line. Fixes and new features ship only in plugin releases for Airflow 3.
Plugin 1.1.0.5 is the first release that requires Airflow 2.7 or later. The DataHub 1.2.0 and DataHub Cloud v0.3.13 release notes announce the change. Plugin 1.6.0.1 dropped Airflow 2 completely. Releases 1.6.0.1 and later require Airflow 3.0 or later.
Dropped support means that a plugin release is not built or tested for your Airflow version. pip does not always block the install. Releases 1.3.1.5 through 1.6.0 accept Airflow 2.5 or later, so pip installs them on Airflow 2.6, but nobody tests them there. Pin the plugin, and do not rely on pip to stop an unsupported install.
Solution
-
Check your versions:
pip show apache-airflow acryl-datahub-airflow-plugin -
Install the plugin release for your Airflow version:
- Airflow 3.0 or later:
pip install 'acryl-datahub-airflow-plugin'. This is the supported setup. - Airflow 2.7 to 2.10:
pip install 'acryl-datahub-airflow-plugin[airflow2]<=1.6.0' - Airflow 2.5 and 2.6:
pip install 'acryl-datahub-airflow-plugin<=1.1.0.4'
The Airflow 2 pins keep an existing install running. They are not supported and get no fixes. Plan the move to Airflow 3.
Older Airflow versions are in Compatibility.
- Airflow 3.0 or later:
-
On Airflow 2, do not run an unpinned
pip install --upgrade acryl-datahub-airflow-plugin. The latest plugin requires Airflow 3.0 or later, so pip upgrades Airflow itself to 3.x, or the install fails. -
To get plugin fixes and new features, upgrade Airflow to 3.0 or later first. Then install the plugin without the
[airflow2]extra. Releases that require Airflow 3 do not have that extra. -
Use plugin version numbers in pins. Do not use DataHub Cloud version numbers.
-
If you install with an Airflow constraints file, follow Installing with Airflow constraints.
-
After the install, check that Airflow loads the plugin. The
airflow pluginscommand listsdatahub_plugin. Other checks are in Missing lineage.
Related Documentation
- Airflow Integration: Compatibility
- Airflow Integration: Installing with Airflow constraints
- Upgrading to Airflow 3
Tags: airflow, version-compatibility, plugin, upgrade, dependencies, airflow-integration