Skip to main content

Marquez integration with Airflow

Project description

marquez-airflow

Is 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 DAG to a MarquezDAG, see example below:

from marquez.airflow import MarquezDag as DAG
from airflow.operators.dummy_operator import DummyOperator
from datetime import datetime


DAG_NAME = 'my_DAG_name'

default_args = {
    'mqz_namespace': 'namespace_1',
    'mqz_location': 'github://data-dags/dag_location/',
    'mqz_input_datasets': ["s3://some_data", "s3://more_data"],
    'mqz_output_datasets': ["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.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

marquez_airflow-0.0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: marquez-airflow-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6

File hashes

Hashes for marquez-airflow-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ef753919551bbfc1dd0d85171928c6d29a9449875f503d92f02d6ffdef957260
MD5 873ffa2b48c0765ca747675aea9b3168
BLAKE2b-256 b550864c4a5491f1ccf767939704920f19e5e5e3bc29691b9d6f0efa241d5e3f

See more details on using hashes here.

File details

Details for the file marquez_airflow-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: marquez_airflow-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6

File hashes

Hashes for marquez_airflow-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa4346695426dcd925b2f223545cf01c81e74088441ece522517b2f1fbe7daea
MD5 8a817b45306cf972ea147aaf2a15c646
BLAKE2b-256 d38e60cf7dc081239f308d48058411140b6a76ea547070484f1df0f9aa8b5539

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