Airflow in Practice Stop Worrying Start Loving DAGs - Sarah Schattschneider
Вставка
- Опубліковано 10 гру 2024
- This talk was presented at PyBay2019 - 4th annual Bay Area Regional Python conference. See pybay.com for more details about PyBay and click SHOW MORE for more information about this talk.
Description
Heard of Apache Airflow? Do you work with Airflow or want to work with Airflow? Ever wonder how to better test Airflow? Have you considered all data workflow use cases for Airflow? Come be reminded of key concepts and then we will dive into Airflow’s value add, common use cases, and best practices. Some use cases: Extract Transform Load (ETL) jobs, snapshot databases, and ML feature extraction.
Abstract
Background - What is Airflow? Explain Cron and how it compares to Airflow High level explain the key concepts of Airflow * Direct Acyclic Graph (DAG) - nodes are tasks and edges are dependency structure * Third Party Integrations (Slack, Google Cloud Platform, AWS, etc) * Airflow Hooks & Operators * What is Airflow? * Programmatically author workflows * Stateful scheduling * Rich CLI and UI that make development easy * Logging, monitoring, and alerting * Modularity lends itself well to testability * Solves common problems with batch processing * Open sourced by AirBnB in 2015
Evaluating Airflow * What value does Airflow add? * Retries task elegantly, which handles transient network errors * Alerts on failure (email or slack) * Can re-run specific tasks in a large DAG * Support distributed execution * Great OSS community and momentum * Can be hosted on AWS, Azure, or GCP * Managed options for Airflow - AWS Glue, GCP Cloud Composer, or Azure Data Factory
Does Airflow Have an Ugly Side? How to Overcome Challenges?
Upgrades can be more challenging when you have custom hooks and operators
env vars vs variables vs xcoms
Common Use Cases Extract Transform Load (ETL) Jobs * Airflow enables moving data and transforming data very easily * Can create custom Hooks for Third Party APIs Efficiently Snapshot Databases Create Test Environments for QA ML Feature Extraction
Best Practices Testing * Unit tests from lib functions * Acceptance tests to run list_dags Doc MD for the DAG * Contain Points of Contact * What remediation/escalation steps should the on-call person take when this DAG fails?
Exciting New/New(ish) Features * Lineage * Role Based Access Control * Airflow 2.0 Improvements
Original slides: t.ly/xYJk9
About the speaker
Software Engineer at Blue Apron on the Data Engineering team. Work daily using Python on our data pipeline. Excited by how Python is transforming Data Engineering.
Sponsor Acknowledgement
This and other PyBay2019 videos are via the help of our media partner AlphaVoice (www.alphavoice...!
#pybay #pybay2019 #python #python3 #gdb
What a fantastic talk! I've been using Airflow for a few days now and this cleared up a lot of the lingering questions I still had.
16:48 Isn't it the 3rd of every month at 10;05 in the morning?
same thing I noticed !
Thanks , I also noticed.
I also Noticed....!
Excellent presentation. It's clear that you use Airflow, know Airflow and your pacing (during the presentation) is perfect. Thank you for the help.
Very useful session, serves as a good introduction to everyone who would like to learn about Apache Airflow.
Great talk! Very well explained for all airflow beginners.
thanks for this perfect presentation
Can Airflow be used run tasks on hosts outside of kubernetes, as some apps run on dedicated hosts?
I am guessing, if such an operator doesnt exist already you can write it for yourself. but IIRC aws batch operator, python virtualenv operator exists
Very useful presentation. Thank you.
nice explanation.. Thanks.
Thanks for the presentation! One part still unclear for me about ETL, maybe someone can answer me here.\
If we work with really big DB like 10Tb, should DAG select all data and download it to airflow instance, and then load it to BigQuery or something else? Or DAG should split job and download data with batches?
Hi , do you know how to call a yml file from another Linux server to Airflow server through DAG ? The yml consists Linux service restart.
Awesome presentation. I got a better understanding of Airflow. The concepts were explained in simple terms
Hi , do you know how to call a yml file from another Linux server to Airflow server through DAG ? The yml consists Linux service restart.
Hello, i would like to know whether there is a way airflow can use autosys job as a dependent job.
Hi , do you know how to call a yml file from another Linux server to Airflow server through DAG ? The yml consists Linux service restart.
Very good talk. Thank you
Very useful 👍
directed acyclic dag
now I love Airflow even more
It was a nice talk! Thank you for sharing your excellent story!
Cool
Didn't know Jennifer Lawrence was so knowledgeable about Airflow
good that she finds time to write DAGs after running around jungles in Hunger games
I didn't know Jennifer Lawrence was also a talented developer as well. =D
hah!!!, I thought the same!
lot off blala
You are looking so beautiful... flawless, very attractive n natural !!!