Apache Airflow 1.9从GitHub安装在debian 8上

ben*_*092 2 airflow

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

但是,我在airflow initdbFernet造成的错误中,你知道如何解决这个问题吗?

   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 
Run Code Online (Sandbox Code Playgroud)

如何pip install apache-airflow[gcp-api]从我之前使用GitHub的pip命令安装中指定extrapackage ?

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

sko*_*ozz 7

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

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