django - Airflow 的网络服务器未运行

标签 django python-3.x airflow airflow-scheduler

我在 Django 的 Airflow 中配置电子邮件调度程序,但它不起作用。

终端错误:

airflow webserver
[2017-12-29 10:52:17,614] {__init__.py:57} INFO - Using executor SequentialExecutor
[2017-12-29 10:52:17,734] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python3.5/lib2to3/Grammar.txt
[2017-12-29 10:52:17,765] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python3.5/lib2to3/PatternGrammar.txt
  ____________       _____________
 ____    |__( )_________  __/__  /________      __
____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
 _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/

/usr/local/lib/python3.5/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.cache is deprecated, use flask_cache instead.
  .format(x=modname), ExtDeprecationWarning
[2017-12-29 10:52:18,354] [8169] {models.py:167} INFO - Filling up the DagBag from /home/hitesh/airflow/dags
Running the Gunicorn Server with:
Workers: 4 sync
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: - -
=================================================================            

Error: 'airflow.www.gunicorn_config' doesn't exist

最佳答案

Airflow(已测试 v1.8.0)不适用于 Gunicorn 19.4+,原因如下: http://mail-archives.apache.org/mod_mbox/airflow-commits/201708.mbox/%3CJIRA.13063358.1491960900000.100006.1501939203227@Atlassian.JIRA%3E

使用此命令降级gunicorn后,它应该可以工作pip install Gunicorn==19.3.0

关于django - Airflow 的网络服务器未运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48017804/

相关文章:

django - 在 gunicorn 中运行时如何从 django 应用程序获取覆盖率数据

使用自定义表单的 Django 内联表单集

python - 在 Django admin 中使用模型显示表格

python-3.x - python : how to import csv file from github into text file

Python 过滤 *args **kwargs 中的参数

python - 如何在单元测试中测试 Airflow dag?

docker - Airflow DockerOperator 无法正确挂载 tmp 目录

django - 关于 wsgi.py 中 wsgi 模块的 Ubuntu 16.04 服务器错误

python-3.x - 库 Linear_kernel 中的内存错误导致 cosine_similarities

kubernetes - 如何在GCP Cloud Composer上的Apache Airflow上将带有 `KubernetesPodOperator`的连接 Hook 用作环境变量