本教程将向您介绍一些基本的Airflow概念,对象及其在编写第一个管道时的用法。
以下是基本管道定义的示例。 如果这看起来很复杂,请不要担心,下面将逐行说明。
"""
Code that goes along with the Airflow tutorial located at:
https://github.com/apache/incubator-airflow/blob/master/airflow/example_dags/tutorial.py
"""
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from datetime import datetime , timedeltadefault_args = {'owner' : 'airflow' ,'depends_on_past' : False ,'start_date' : datetime ( 2015 , 6 , 1 ),'email' : [ 'airflow@example.com' ],'email_on_failure' : False ,
阅读全文/改进本文
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态