airflow - 从 GitHub 在 debian 8 上安装 Apache Airflow 1.9

标签 airflow

感谢 debian 9 上的命令行,我从 GitHub 安装了 Apache airflow 1.9:pip install git+https://github.com/apache/incubator-airflow.git@v1-9-stable

但是,我在 airflow initdb 期间出现错误,由 Fernet 引起,你知道如何解决这个问题吗?

   INFO  [alembic.runtime.migration] Running upgrade 947454bf1dff -> d2ae31099d61, Increase text size for MySQL (not relevant for other DBs' text types)
    [2017-12-27 17:19:24,586] {models.py:643} ERROR - Failed to load fernet while encrypting value, using non-encrypted value.
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/airflow/models.py", line 639, in set_extra
        fernet = get_fernet()
      File "/usr/local/lib/python2.7/dist-packages/airflow/models.py", line 103, in get_fernet
        raise AirflowException('Failed to import Fernet, it may not be installed')
    AirflowException: Failed to import Fernet, it may not be installed
    [2017-12-27 17:19:24,601] {models.py:643} ERROR - Failed to load fernet 

我如何指定 extrapackage,就像我之前使用 GitHub 的 pip 命令安装的 pip install apache-airflow[gcp-api] 一样?

如何安装最新的1.9.0RC?我有一个断言错误。

最佳答案

标记为良好的答案有一个断开的链接,如果你像我一样登陆这里并且它继续断开,这些步骤对我有用:

  • pip 安装密码学
  • python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
  • 将生成的 key 添加到配置文件 airflow.cfg, fernet_key = YOUR_GENERATED_KEY

关于airflow - 从 GitHub 在 debian 8 上安装 Apache Airflow 1.9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47997204/

相关文章:

触发直联任务失败的 Airflow 错误处理任务触发规则

python - DAG 在 Web-UI 中不可见

python - Airflow - 在 BranchPythonOperator 中访问 Xcom

Python:从其他地方导入?

python - 最新的唯一运算符(operator)与Airflow追赶之间的区别

python - AirFlow 调度程序 - 运行日期

python - 爱彼迎 Airflow : Installing Airflow without pip

css - 如何在 Iframe 中为 Web 资源设置域

amazon-web-services - 使用 SecretsManager 作为后端的本地 MWAA (AWS Airflow) "Can' t 查找凭据”

python - 重新运行失败的 SubDAG