【发布时间】:2017-04-22 02:59:03
【问题描述】:
Airflow 网络服务器仅在调试模式下启动:
airflow webserver -p 8051
我得到了traceback:
[2016-12-07 03:38:48,056] {__init__.py:36} INFO - Using executor CeleryExecutor
[2016-12-07 03:38:48,056] {models.py:154} INFO - Filling up the DagBag from /home/user/some_dir/airflow/dags. Running the Gunicorn server with 4 syncworkers on host 0.0.0.0 and port 8051 with a timeout of 120...
['gunicorn', '-w 4', '-k sync', '-t 120', '-b 0.0.0.0:8051', '-n airflow- webserver', '-p /home/user/some_dir/airflow/airflow-webserver.pid', 'airflow.www.app:cached_app()']
Traceback (most recent call last):
File "./airflow", line 15, in <module> args.func(args)
File "/home/user/userenv/local/lib/python2.7/site-packages/airflow/bin/cli.py", line 426, in webserver 'gunicorn', run_args
File "/home/user/userenv/lib/python2.7/os.py", line 344, in execvp
_execvpe(file, args) File "/home/user/userenv/lib/python2.7/os.py", line 380, in _execvpe func(fullname, *argrest)
OSError: [Errno 2] No such file or directory`
但是airflow webserver -p 8051 -d 有效
我在$AIRFLOW_HOME 中也看不到airflow-webserver.pid 文件
但在调试模式下我无法运行气流工作者
【问题讨论】:
标签: python python-2.7 pip airflow