将Apache Airflow配置为使用Postgres数据库时出错

问题描述 投票:0回答:1

我一直在向Apache Airflow介绍自己,到目前为止一切都很好,但是我一直在使用默认的SQLite数据库,现在我需要更改为PostgreSQL数据库。我已将executor更改为LocalExecutor,并将sql_alchemy_conn字符串设置为postgresql + psycopg2:// airflow:airflow @ postgres:5432 / airflow,这是 airflow我在postgres中创建的数据库。

现在,当我运行airflow initdb时,我收到此错误

airflow.exceptions.AirflowConfigException: error: cannot use sqlite with the LocalExecutor

我正在使用PostgreSQL 9.4.24

有人知道为什么会这样吗?

postgresql apache airflow
1个回答
0
投票

已解决问题我使用错误的postgres用户作为数据库的位置。应该一直使用postgresql + psycopg2:// user:user @ localhost:5432 / airflow

© www.soinside.com 2019 - 2024. All rights reserved.