运行气流Web服务器时创建的新气流目录

时间:2020-01-19 10:13:26

标签: airflow

我的气流有一些问题。当我安装airflow并将airflow主目录设置为

my_home/Workspace/airflow_home

但是当我启动Web服务器时,会创建一个新的气流目录

my_home/airflow

我认为可能需要更改airflow.cfg文件中的某些内容,但我不确定。有人遇到过这个问题吗?

2 个答案:

答案 0 :(得分:0)

尝试做MainComponent.js @action addCondition (){ document.getElementById("placeholder").innerHTML += `<RowComponent/>`; } ,看看它是否是您设置的正确路径

答案 1 :(得分:0)

您需要将AIRFLOW_HOME设置为保存气流配置文件的目录。

如果airflow.cfg文件的完整路径为/home/test/bigdata/airflow/airflow.cfg 刚运行

export AIRFLOW_HOME=/home/test/bigdata/airflow

如果未设置AIRFLOW_HOME,它将默认使用〜/ airflow。

您还可以编写一个Shell脚本来启动气流Web服务器 它可能包含下面的行

source ~/.virtualenvs/airflow/bin/activate  # if your airflow is installed with virtualenv, this is not necessary
export AIRFLOW_HOME=/home/test/bigdata/airflow  # path should be changed according to your environment
airflow webserver -D  # start airflow webserver as daemon