【发布时间】:2017-11-29 19:47:24
【问题描述】:
尊敬的 Stackoverflow 成员,
我正在尝试使用 Airflow 来安排启动集群的 DAG,运行一些 Spark 作业,然后自行终止。我试着按照这个例子:
https://insight.io/github.com/apache/incubator-airflow/blob/master/airflow/contrib/example_dags/example_emr_job_flow_automatic_steps.py
它给了我错误:airflow.exceptions.AirflowException:未定义 conn_id emr_default
我可能需要设置emr_default(如果不是这种情况,请纠正我)。有没有人尝试过这个并给我一些关于如何设置它的提示? Airflow 网站没有提供太多关于 emr 连接:http://pythonhosted.org/airflow/configuration.html?highlight=connection#connections
谢谢!
【问题讨论】: