Skip to main content

Marquez integration with Airflow

Project description

marquez-airflow

CircleCI

A library that integrates Airflow DAGs with Marquez for automatic metadata collection.

Requirements

  • Python 3.5+
  • apache-airflow 1.10.0+
  • marquez-client

Installation

pip install marquez-airflow

Usage

Once the library is installed in your system, your current DAGs need to be modified slightly by changing the import of airflow.models.DAG to marquez.airflow.DAG, see example below:

from marquez.airflow import DAG
from airflow.operators.dummy_operator import DummyOperator


DAG_NAME = 'my_DAG_name'

default_args = {
    'marquez_location': 'github://data-dags/dag_location/',
    'marquez_input_urns': ["s3://some_data", "s3://more_data"],
    'marquez_output_urns': ["s3://output_data"],
    
    'owner': ...,
    'depends_on_past': False,
    'start_date': ...,
}

dag = DAG(DAG_NAME, schedule_interval='*/10 * * * *',
          default_args=default_args, description="yet another DAG")

run_this = DummyOperator(task_id='run_this', dag=dag)
run_this_too = DummyOperator(task_id='run_this_too', dag=dag)
run_this_too.set_upstream(run_this)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marquez-airflow-0.1.5.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file marquez-airflow-0.1.5.tar.gz.

File metadata

  • Download URL: marquez-airflow-0.1.5.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for marquez-airflow-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e097bb8cf5650dae1ef61645224094e61019538893d5a3001027a66d82c228e8
MD5 ea2f37d5cad32f80b5cd4cf27012843e
BLAKE2b-256 cfa0da8e1a40fb4ddeaa0e43a41164fcb56d18092f632d282ddef308adf2f7df

See more details on using hashes here.

Supported by

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