如何在Windows上运行Airflow [英] How to run Airflow on Windows

查看:6902
本文介绍了如何在Windows上运行Airflow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行Airflow的常用指令不适用于Windows环境:

 #airflow需要一个home,〜/ airflow是默认的,
#但是如果你愿意的话,你可以在其他地方打基础
#(可选)
导出AIRFLOW_HOME =〜/ / airflow

#从pypi安装pip
pip安装airflow

#初始化数据库
airflow initdb

#启动web服务器,默认端口为8080
airflow webserver -p 8080

Airflow实用程序在命令行中不可用,我无法在其他位置找到它手动添加。
Airflow如何在Windows上运行?

解决方案

您可以激活 bash 在窗口中,并按照教程。
按照上面的说明,我可以成功运行。



完成安装后,编辑 airflow.cfg 将所有的配置指向你的Windows系统中的某个地方,而不是lxss(ubuntu),因为ubuntu的错误不会显示windows系统写的文件。

The usual instructions for running Airflow do not apply on a Windows environment:

# airflow needs a home, ~/airflow is the default,
# but you can lay foundation somewhere else if you prefer
# (optional)
export AIRFLOW_HOME=~/airflow

# install from pypi using pip
pip install airflow

# initialize the database
airflow initdb

# start the web server, default port is 8080
airflow webserver -p 8080

The Airflow utility is not available in the command line and I can't find it elsewhere to be manually added. How can Airflow run on Windows?

解决方案

You can activate bash in windows and follow the tutorial as is. I was able to get up and running successfully following above.

Once you are done installing, edit airflow.cfg to point all your configurations to somewhere in your windows system rather than lxss (ubuntu) since there are bugs around ubuntu not showing files written by windows system.

这篇关于如何在Windows上运行Airflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆