Unable to start Airflow worker/flower and need clarification on Airflow architecture to confirm that the installation is correct

前端 未结 2 948
长情又很酷
长情又很酷 2020-12-14 19:02

Running a worker on a different machine results in errors specified below. I have followed the configuration instructions and have sync the dags folder.

I would also

相关标签:
2条回答
  • 2020-12-14 19:31

    The ImportError: No module named postgresql error is due to the invalid prefix used in your celery_result_backend. When using a database as a Celery backend, the connection URL must be prefixed with db+. See https://docs.celeryproject.org/en/stable/userguide/configuration.html#conf-database-result-backend

    So replace:

    celery_result_backend = postgresql+psycopg2://username:password@192.168.1.2:5432/airflow
    

    with something like:

    celery_result_backend = db+postgresql://username:password@192.168.1.2:5432/airflow
    
    0 讨论(0)
  • 2020-12-14 19:43

    You need to ensure to install Celery Flower. That is, pip install flower.

    0 讨论(0)
提交回复
热议问题