Skip to main content

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

acryl_datahub_airflow_plugin-1.6.0.15.tar.gz (58.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acryl_datahub_airflow_plugin-1.6.0.15-py3-none-any.whl (75.8 kB view details)

Uploaded Python 3

File details

Details for the file acryl_datahub_airflow_plugin-1.6.0.15.tar.gz.

File metadata

File hashes

Hashes for acryl_datahub_airflow_plugin-1.6.0.15.tar.gz
Algorithm Hash digest
SHA256 8cca3fc032b1a425c4cd12b5af9931cdac4fa4bf9d1c586f158658165743501d
MD5 52366e4e96bc9de6b98f5997a1ff19fe
BLAKE2b-256 0bb2448ceff22c275e6d51be933f818e27cf08e037f449cc818e77d2bc7bf7eb

See more details on using hashes here.

File details

Details for the file acryl_datahub_airflow_plugin-1.6.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for acryl_datahub_airflow_plugin-1.6.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 ca8876bc553dcfa29ff2115385e7bbdb29c7d0af311379dd694e6d1b2d1bfca1
MD5 1344403cf8edd5053784d94654f1ca7e
BLAKE2b-256 4abb80237b6f86e2b44df24fafa76f02e37afb999175b93edd68e8f2fe965369

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page