如何在Windows上运行Airflow

发布于 2021-01-29 17:54:36

运行Airflow的常规说明不适用于Windows环境:

# 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上运行?

关注者
0
被浏览
50
1 个回答
  • 面试哥
    面试哥 2021-01-29
    为面试而生,有面试问题,就找面试哥。

    您可以bash在Windows中激活,并直接按照本教程进行操作。我能够按照上面的步骤启动并成功运行。

    安装完成后,请进行编辑airflow.cfg以将所有配置指向Windows系统中的某个位置,而不是lxss(ubuntu),因为ubuntu周围存在一些错误,这些错误未显示Windows系统编写的文件。



知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看