Airflow website address
http://airflow.apache.org/
System environment:
CentOS release 6.5 (Final)
python 2.7.13
pip 9.0.1
Problems emerge
Install airflow under the root user in the way of quick start on the official website
export AIRFLOW_HOME=~/airflow
pip install airflow
airflow initdb
All the above commands can be executed normally when airflow is started
/usr/local/python-2.7.13/bin/airflow webserver
Report the following error
[2017-06-30 09:24:01,609] {__init__.py:57} INFO - Using executor SequentialExecutor
____________ _____________
____ |__( )_________ __/__ /________ __
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /|//
___ ___ | /_ / _ __/ _ // /_/ /_ |/ |/ /
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/
/usr/local/python/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.cache is deprecated, use flask_cache instead.
.format(x=modname), ExtDeprecationWarning
[2017-06-30 09:24:02,045] [29107] {models.py:167} INFO - Filling up the DagBag from /root/airflow/dags
Running the Gunicorn Server with:
Workers: 4 sync
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: - -
=================================================================
Traceback (most recent call last):
File "/usr/local/python/bin/airflow", line 28, in <module>
args.func(args)
File "/usr/local/python/lib/python2.7/site-packages/airflow/bin/cli.py", line 791, in webserver
gunicorn_master_proc = subprocess.Popen(run_args)
File "/usr/local/python/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/local/python/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Solutions
Configure /usr/local/python-2.7.13/bin/
to environment variables
export PATH=$PATH:/usr/local/python-2.7.13/bin/
Start ariflow again, the problem is solved.