airflow - 无法让 ECSOperator (Fargate) 与 Airflow 一起工作
问题描述
在 Airflow 1.10.1 中使用 ECSOperator 通过 ECS Fargate 运行任务时出现此错误。此处提供 DAG 代码
[2019-04-15 15:57:36,960] {{models.py:1788}} ERROR - An error occurred
(InvalidParameterException) when calling the RunTask operation: Network
Configuration must be provided when networkMode 'awsvpc' is specified.
不确定那里有什么问题,正如network_configuration
在 args 字典中传递的那样,类似于这里所做的https://github.com/apache/airflow/blob/master/tests/contrib/operators/test_ecs_operator.py#L61
解决方案
自Airflow v1.10.3起, network_configuration已添加到ESCOperator 。我建议将 Airflow 版本升级到v1.10.3。
参考: https ://github.com/apache/airflow/blob/1.10.3/airflow/contrib/operators/ecs_operator.py#L69
推荐阅读
- excel - 使用 excel VBA 代码将 PDF 转换为 Word Doc
- azure-sql-database - Sqoop 导出到 SQL Server。更新和插入。Sqoop 导出更新 SQL Server 上相同的记录
- python - 如何从此文本文件中读取字典?
- python - Numpy where 沿轴 0 的条件语句
- android - 片段调用 onDestroyView 但对适配器的引用为空
- python - Numpy:订阅多维数组中的最外层维度
- swagger - 我想通过 Xcode 为我的项目生成文档。有什么建议吗?
- python - 在新数据框中对多行进行分组
- php - 测试和比较 MySQL 速度的脚本
- python - pandas 正则表达式新列 nan - 但正则表达式测试器显示正则表达式是有效的