安装airflow时,airflow_home文件夹中不会创建任何文件 [英] When installing airflow, no files are created in the airflow_home folder

查看:31
本文介绍了安装airflow时,airflow_home文件夹中不会创建任何文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前在VMware的centos7中成功安装过.但是同样的,在docker中从centos7手动安装出现问题.(CentOS 的官方版本.)

I have successfully installed it in centos7 in VMware before. However, in the same way, there was a problem installing manually from centos7 in docker. (The official build of CentOS.)

(venv) [jykim@0f0090962efa dev]$ cat /etc/*release*
CentOS Linux release 7.9.2009 (Core)

使用以下命令安装气流时,在指定的 AIRFLOW_HOME 目录中未创建任何文件.

When airflow was installed with the command below, no files were created in the specified AIRFLOW_HOME directory.

pip3.8 install 'apache-airflow[postgres]' 

当然,我们使用 .bashrc 注册了 AIRFLOW_HOME 并确认它工作正常.

Naturally, we registered AIRFLOW_HOME with .bashrc and confirmed it was working fine.

(venv) [jykim@0f0090962efa ~]$ pwd
/home/jykim
(venv) [jykim@0f0090962efa ~]$ cd $AIRFLOW_HOME/
(venv) [jykim@0f0090962efa airflow_home]$ pwd
/home/jykim/dev/airflow/airflow_home

重新安装 python 导致相同的结果.

Reinstalling python resulted in the same result.

这让一天都过去了.我需要你的帮助!

This blew the day away. I need your help!

(venv) [jykim@0f0090962efa airflow_home]$ python -V
Python 3.8.8
(venv) [jykim@0f0090962efa airflow_home]$ pip show apache-airflow
Name: apache-airflow
Version: 2.0.2

推荐答案

安装 Airflow 包不会在 Airflow 主目录中创建配置文件.运行一次 Airflow创建默认配置文件,例如与:

Installing the Airflow package will not create configuration files in the Airflow home directory. Run Airflow once for it to create the default configuration files, e.g. with:

airflow info

这篇关于安装airflow时,airflow_home文件夹中不会创建任何文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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