气流新贵直接停止/等待

时间:2018-07-23 20:48:39

标签: ubuntu ubuntu-14.04 airflow upstart

我正在尝试在ubuntu EC2实例的后台运行Airflow Scheduler和Web服务器。每当我启动upstart作业时,airflow-webserver作业都会直接停止/等待。这是我保存在/ etc / init中的.conf文件。 (我使用anaconda来安装气流)

description "Airflow webserver daemon"

start on started networking
stop on (deconfiguring-networking or runlevel [016])

respawn
respawn limit 5 30

setuid unbuntu
setgid unbuntu

env AIRFLOW_CONFIG=/home/ubuntu/airflow/airflow.cfg
env AIRFLOW_HOME=/home/ubuntu/airflow/
export AIRFLOW_CONFIG
export AIRFLOW_HOME

exec /home/ubuntu/anaconda3/bin/airflow webserver

当我查看日志时,这就是我所看到的:

starting airflow-webserver...
/home/airflow/airflow/
/home/airflow/airflow/airflow.cfg
[2018-07-23 19:44:29,341] {__init__.py:45} INFO - Using executor SequentialExecutor
  ____________       _____________
 ____    |__( )_________  __/__  /________      __
____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
 _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/

[2018-07-23 19:44:29,883] {models.py:189} INFO - Filling up the DagBag from /home/ubuntu/airflow/dags
Running the Gunicorn Server with:
Workers: 4 sync
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: - -
================================================================= 

但是此后什么也没有。

1 个答案:

答案 0 :(得分:1)

您将uid和gid设置为“ unbuntu”,而不是“ ubuntu”。

似乎正在尝试从基于/ home / ubuntu /的用户“ ubuntu”运行,如日志消息中所示。

相关问题