DataHub Airflow plugin — automatically capture pipeline lineage, run history, and task metadata from Apache Airflow
Project description
DataHub Airflow Plugin
Automatic lineage and run metadata from Apache Airflow into DataHub — captures DAG structure, task inputs/outputs, and run history with no manual instrumentation.
What you can do
- Capture pipeline lineage — automatically extract dataset-level and column-level lineage from SQL operators
- Track run history — record task execution status, duration, and failures in DataHub
- Enhance OpenLineage — patches Airflow's OpenLineage extractors with DataHub's advanced SQL parser for richer lineage
- Support multiple emitters — send metadata via REST, Kafka, or file
Version compatibility
| Airflow Version | Support |
|---|---|
| 3.0+ | ✅ Fully supported |
| 2.x | ❌ Use acryl-datahub-airflow-plugin <= 1.6.0 |
Installation
pip install acryl-datahub-airflow-plugin
# With Kafka emitter
pip install 'acryl-datahub-airflow-plugin[datahub-kafka]'
Configuration
Add to airflow.cfg:
[datahub]
enabled = True
conn_id = datahub_rest_default # Airflow connection pointing to your DataHub GMS
Set up the Airflow connection:
airflow connections add datahub_rest_default \
--conn-type HTTP \
--conn-host http://localhost:8080
The plugin activates automatically — no changes to your DAG code required.
Key configuration options
| Option | Default | Description |
|---|---|---|
enable_extractors |
True |
Enhance OpenLineage extractors |
patch_sql_parser |
True |
Use DataHub's SQL parser for column-level lineage |
enable_multi_statement_sql_parsing |
False |
Resolve temp tables across multi-statement tasks |
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file acryl_datahub_airflow_plugin-1.6.0.12rc2.tar.gz.
File metadata
- Download URL: acryl_datahub_airflow_plugin-1.6.0.12rc2.tar.gz
- Upload date:
- Size: 58.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c667b19f1d090d03e231124cfaa36bc673523313655c6f06220d8a5f5275846
|
|
| MD5 |
0e5838d03cfce70d79f053bb9c1fe94f
|
|
| BLAKE2b-256 |
112c425598c26671df85c522b927423bb2af7f5a22b9de5933408a03d3047811
|
File details
Details for the file acryl_datahub_airflow_plugin-1.6.0.12rc2-py3-none-any.whl.
File metadata
- Download URL: acryl_datahub_airflow_plugin-1.6.0.12rc2-py3-none-any.whl
- Upload date:
- Size: 75.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea7789766ee279c293d13a2d8ec85664d1e6c95168840ecba4a9eddeae932bf6
|
|
| MD5 |
3ef3f6cfc66d9f446580bef224dd6d14
|
|
| BLAKE2b-256 |
cf9ad46865d8280220ed83523517cb71911cd9705369a795023eb97724cd2959
|