我在3个ec2节点(网络服务器,调度程序和工作器)上安装了气流,我在所有3个节点上都将相同的配置设置为/airflow/airflow.cfg
,下一个sql_alchemy_conn = postgresql+psycopg2://airflow:password@rdsdatabaseaddreess.com/airflow
则是数据库的配置。
之后,我重新启动服务airflow
并执行命令airflow initdb
ec2-user@ip-10-0-0-143 airflow]$ /usr/local/bin/airflow initdb
DB: sqlite:////airflow/airflow.db
[2019-11-21 01:39:30,325] {db.py:368} INFO - Creating tables
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
WARNI [airflow.utils.log.logging_mixin.LoggingMixin] empty cryptography key - values will not be stored encrypted.
Done.
但是气流仍在使用sqlite
DB: sqlite:////airflow/airflow.db
请咨询。 致以最诚挚的问候。