Apache Airflow - 无法在 CentOS7 上设置 Airflow -
Apache Airflow - Cannot setup Airflow on CentOS7 -
我正在尝试 运行 Apache Airflow 使用容器 CentOS7。我正在 运行ning 使用 Python 3.6.9。我已经使用 pip 安装了 apache airflow,但是当我尝试使用 airflow initdb
设置数据库时,出现以下错误:
(app-root) sh-4.2$ airflow version
Traceback (most recent call last):
File "/opt/app-root/bin/airflow", line 5, in <module>
from airflow.__main__ import main
File "/opt/app-root/lib/python3.6/site-packages/airflow/__init__.py", line 34, in <module>
from airflow import settings
File "/opt/app-root/lib/python3.6/site-packages/airflow/settings.py", line 37, in <module>
from airflow.configuration import AIRFLOW_HOME, WEBSERVER_CONFIG, conf # NOQA F401
File "/opt/app-root/lib/python3.6/site-packages/airflow/configuration.py", line 1007, in <module>
conf.validate()
File "/opt/app-root/lib/python3.6/site-packages/airflow/configuration.py", line 209, in validate
self._validate_config_dependencies()
File "/opt/app-root/lib/python3.6/site-packages/airflow/configuration.py", line 246, in _validate_config_dependencies
raise AirflowConfigException(f"error: cannot use sqlite version < {min_sqlite_version}")
airflow.exceptions.AirflowConfigException: error: cannot use sqlite version < 3.15.0
我该怎么做才能解决这个问题?
您需要升级sqlite版本:
yum update
yum install sqlite
示例docker run -it centos:latest
:
[root@d09e5ee37969 /]# sqlite3 --version
3.26.0 2018-12-01 12:34:55 bf8c1b2b7a5960c282e543b9c293686dccff272512d08865f4600fb58238alt1
Airflow >=2.0.0 仅适用于 Sqlite 3.15.0+
我正在尝试 运行 Apache Airflow 使用容器 CentOS7。我正在 运行ning 使用 Python 3.6.9。我已经使用 pip 安装了 apache airflow,但是当我尝试使用 airflow initdb
设置数据库时,出现以下错误:
(app-root) sh-4.2$ airflow version
Traceback (most recent call last):
File "/opt/app-root/bin/airflow", line 5, in <module>
from airflow.__main__ import main
File "/opt/app-root/lib/python3.6/site-packages/airflow/__init__.py", line 34, in <module>
from airflow import settings
File "/opt/app-root/lib/python3.6/site-packages/airflow/settings.py", line 37, in <module>
from airflow.configuration import AIRFLOW_HOME, WEBSERVER_CONFIG, conf # NOQA F401
File "/opt/app-root/lib/python3.6/site-packages/airflow/configuration.py", line 1007, in <module>
conf.validate()
File "/opt/app-root/lib/python3.6/site-packages/airflow/configuration.py", line 209, in validate
self._validate_config_dependencies()
File "/opt/app-root/lib/python3.6/site-packages/airflow/configuration.py", line 246, in _validate_config_dependencies
raise AirflowConfigException(f"error: cannot use sqlite version < {min_sqlite_version}")
airflow.exceptions.AirflowConfigException: error: cannot use sqlite version < 3.15.0
我该怎么做才能解决这个问题?
您需要升级sqlite版本:
yum update
yum install sqlite
示例docker run -it centos:latest
:
[root@d09e5ee37969 /]# sqlite3 --version
3.26.0 2018-12-01 12:34:55 bf8c1b2b7a5960c282e543b9c293686dccff272512d08865f4600fb58238alt1
Airflow >=2.0.0 仅适用于 Sqlite 3.15.0+