在迁移airflow upgrade_check
到Airflow 2.0
.
我将 Fernet 问题视为一个问题:
Fernet is enabled by default
The fernet mechanism is enabled by default to increase the security of the default installation.
Problems:
1. fernet_key in airflow.cfg must be explicitly set empty as fernet mechanism is enabledby default. This means that the apache-airflow[crypto] extra-packages are always installed.However, this requires that your operating system has libffi-dev installed.
在airflow.cfg 文件中,我有一个fernet_key 参数,其值是使用以下方法创建的:
from cryptography.fernet import Fernet
fernet_key= Fernet.generate_key()
print(fernet_key.decode())
问题仍然存在。我尝试设置fernet_key
为空,例如:
fernet_key =
我已经用 pip 安装了加密:
pip install apache-airflow[crypto,postgres,ssh,s3,log]=1.10.14
在Airflow doc的此链接中的应用建议部分中,他们解释说创建一个有效的fernet_key
,这就是我所做的。
还有其他想法如何解决吗?