Issues running airflow scheduler as a daemon process

前端 未结 2 1434
[愿得一人]
[愿得一人] 2021-02-04 08:08

I have an EC2 instance that is running airflow 1.8.0 using LocalExecutor. Per the docs I would have expected that one of the following two commands would have raise

2条回答
  •  爱一瞬间的悲伤
    2021-02-04 08:14

    About task start via systemd:

    I had a problem with the PATH variable when run this way is initially empty. That is, when you write to the file /etc/sysconfig/airflow:

    PATH=/home/ubuntu/bin:/home/ubuntu/.local/bin:$PATH
    

    you literally write:

    PATH=/home/ubuntu/bin:/home/ubuntu/.local/bin
    

    Thus, the variable PATH doesn't contain /bin which is a bash utility that LocalExecutor uses to run tasks.

    So I do not understand why in this file you have not specified AIRFLOW_HOME. That is, the directory in which the Airflow is looking for its configuration file.

提交回复
热议问题