Airflow 初试
来源:互联网 发布:外国在线视频下载软件 编辑:程序博客网 时间:2024/06/06 11:40
smtp 配置:
[smtp]# If you want airflow to send emails on retries, failure, and you want to use# the airflow.utils.email.send_email_smtp function, you have to configure an smtp# server heresmtp_host = smtp_starttls = Falsesmtp_ssl = Falsesmtp_user = smtp_port = smtp_password = smtp_mail_from =
一个DAG例子:test.py
from airflow.models import DAGfrom airflow.operators import BashOperatorfrom datetime import datetime, timedeltadefault_args = { 'owner': 'hadoop', 'depends_on_past': False, 'start_date': datetime(2017, 4, 27), 'email': ['***@163.com', ...], 'email_on_failure': True, 'email_on_retry': True, #'queue':'celery', }dag = DAG(dag_id='dag1', default_args=default_args, schedule_interval='0 0 * * *' )t1 = BashOperator( task_id='task1', bash_command="***", dag=dag)t2 = BashOperator( task_id='task2', bash_command="***", dag=dag)t3 = BashOperator( task_id='task3', bash_command="***", dag=dag)t2.set_upstream(t1)t3.set_upstream(t2)
more:
- http://pythonhosted.org/airflow/
- http://itfish.net/article/63888.html
- http://ju.outofmemory.cn/entry/245373
阅读全文
0 0
- Airflow 初试
- airflow FAQ
- airflow安装
- 初探airflow
- Airflow学习笔记 --- airflow安装
- 初试
- 初试
- 初试
- 初试
- [AirFlow]AirFlow使用指南一 安装与启动
- [AirFlow]AirFlow使用指南二 DAG定义文件
- [AirFlow]AirFlow使用指南四 DAG Operator Task
- airflow开启自动化schedule
- airflow详细配置说明
- 调度工具:Airflow
- airflow详细安装过程
- Airflow使用入门指南
- airflow高可用
- 使用Docker运行TensorFlow
- 线段树总结
- postgresql数据库使用函数查询所有符合条件的表名,以及删除所有查询到的表的数据
- org.openqa.selenium.NoSuchElementException: Unable to locate element: 异常解决方法
- [.cpp]挑战程序设计问题的利器 freopen()函数
- Airflow 初试
- 详解jdbcTemplate和namedParameterJdbcTemplate
- MyEclipse10和MyEclipse2014项目之间的导入
- FZU-2254 英语考试
- Shape Correspondence and Functional Maps
- C++类与对象——日期类
- Lucene查询索引
- Android 使用RecyclerView实现列表item重叠效果(使用addItemDecoration方法)
- IO多路复用