As mentioned in a previous post we had to build everything from scratch including python. We believe we have it all built correctly but have tried to switch to the out of the box serial executor and db just to get up and running.
[fxudply@auaeuap070wbcr2 bin]$ ./airflow -h
usage: airflow [-h]
{backfill,clear,run,test,task_state,webserver,scheduler,initdb,resetdb,upgradedb,list_dags,list_tasks,worker,serve_logs,flower,version,kerberos}
...
positional arguments:
{backfill,clear,run,test,task_state,webserver,scheduler,initdb,resetdb,upgradedb,list_dags,list_tasks,worker,serve_logs,flower,version,kerberos}
sub-command help
backfill Run subsections of a DAG for a specified date range
clear Clear a set of task instance, as if they never ran
run Run a single task instance
test Test a task instance. This will run a task without
checking for dependencies or recording it's state in
the database.
task_state Get the status of a task instance.
webserver Start a Airflow webserver instance
scheduler Start a scheduler scheduler instance
initdb Initialize the metadata database
resetdb Burn down and rebuild the metadata database
upgradedb Upgrade metadata database to latest version
list_dags List the DAGs
list_tasks List the tasks within a DAG
worker Start a Celery worker node
serve_logs Serve logs generate by worker
flower Start a Celery Flower
version Show version
kerberos Start a kerberos ticket renewer
optional arguments:
-h, --help show this help message and exit
[fxudply@auaeuap070wbcr2 bin]$ ./airflow version
____________ _____________
____ |__( )_________ __/__ /________ __
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / /
___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ /
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/
v1.5.1
We successfully initialise the DB without error. When we try to start the airflow server we get:
2015-10-19 13:06:46,003 - root - INFO - Filling up the DagBag from /home/fxudply/fxudply/airflow/dags
2015-10-19 13:06:46,005 - root - INFO - Importing /opt/fxudply/python/current/lib/python2.7/site-packages/airflow-1.5.1-py2.7.egg/airflow/example_dags/example_bash_operator.py
2015-10-19 13:06:46,023 - root - INFO - Loaded DAG <DAG: example_bash_operator>
2015-10-19 13:06:46,032 - root - INFO - Importing /opt/fxudply/python/current/lib/python2.7/site-packages/airflow-1.5.1-py2.7.egg/airflow/example_dags/example_branch_operator.py
2015-10-19 13:06:46,042 - root - INFO - Loaded DAG <DAG: example_branch_operator>
2015-10-19 13:06:46,051 - root - INFO - Importing /opt/fxudply/python/current/lib/python2.7/site-packages/airflow-1.5.1-py2.7.egg/airflow/example_dags/example_http_operator.py
2015-10-19 13:06:46,053 - root - INFO - Loaded DAG <DAG: example_http_operator>
2015-10-19 13:06:46,058 - root - INFO - Importing /opt/fxudply/python/current/lib/python2.7/site-packages/airflow-1.5.1-py2.7.egg/airflow/example_dags/example_python_operator.py
2015-10-19 13:06:46,065 - root - INFO - Loaded DAG <DAG: example_python_operator>
2015-10-19 13:06:46,074 - root - INFO - Importing /opt/fxudply/python/current/lib/python2.7/site-packages/airflow-1.5.1-py2.7.egg/airflow/example_dags/example_xcom.py
2015-10-19 13:06:46,084 - root - INFO - Loaded DAG <DAG: example_xcom>
2015-10-19 13:06:46,091 - root - INFO - Importing /opt/fxudply/python/current/lib/python2.7/site-packages/airflow-1.5.1-py2.7.egg/airflow/example_dags/tutorial.py
2015-10-19 13:06:46,099 - root - INFO - Loaded DAG <DAG: tutorial>
Running the Gunicorn server with 4on host 10.5.75.231 and port 10002...
Traceback (most recent call last):
File "./airflow", line 4, in <module>
__import__('pkg_resources').run_script('airflow==1.5.1', 'airflow')
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 735, in run_script
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1652, in run_script
File "/opt/sw/calypso/software/fxudply/python/Python-2.7.10/lib/python2.7/site-packages/airflow-1.5.1-py2.7.egg/EGG-INFO/scripts/airflow", line 17, in <module>
File "/opt/fxudply/python/current/lib/python2.7/site-packages/airflow-1.5.1-py2.7.egg/airflow/bin/cli.py", line 265, in webserver
args.hostname + ':' + str(args.port), 'airflow.www.app:app'])
File "/opt/fxudply/python/current/lib/python2.7/subprocess.py", line 710, in __init__
File "/opt/fxudply/python/current/lib/python2.7/subprocess.py", line 1335, in _execute_child
OSError: [Errno 2] No such file or directory