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

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

问题描述

运行 Airflow 的通常说明不适用于 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

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

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?

推荐答案

您可以在 Windows 中激活 bash 并按原样遵循教程.我能够按照上述操作成功启动并运行.

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

安装完成后,编辑 airflow.cfg 将所有配置指向 Windows 系统中的某个位置,而不是 lxss (ubuntu),因为 ubuntu 存在一些错误,无法显示由 Windows 系统编写的文件.

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天全站免登陆