我好像在做某事。错误的。
https://pythonhosted.org/airflow/start.html https://pythonhosted.org/airflow/start.html
$ export AIRFLOW_HOME=~/airflow
$ pip install apache-airflow
Requirement already satisfied
$ airflow initdb
airflow: Command not found
蟒蛇——版本
Python 2.7.10
这很奇怪 - 安装似乎运行良好(有一些警告 - 没什么严重的)说:气流、烧瓶等已成功安装。但即使重新启动 PC(Ubuntu 15.10)后,气流似乎也不是命令。
- 您可以为 Airflow 创建一个虚拟环境,以将其保留为单独的实体:virtualenvairflow_virtualenv
- 转到虚拟环境的 bin 文件夹:cd 气流 virtualenv/bin
- 激活虚拟环境:源激活
- 设置气流起始路径:导出 AIRFLOW_HOME=~/气流[您也可以将此语句放在 ~/.profile 或 ~/.bashrc 文件中,这样就不必每次都导出了]
- 安装气流:pip 安装 apache-airflow[如果安装时抛出“六”错误,则运行:pip install apache-airflow --ignore-installed 6]
- 初始化数据库:气流初始化数据库
- 启动网络服务器:气流网络服务器 -p 8080
- 查看气流用户界面:http://localhost-8080.com/ http://localhost:8080/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)