I seem to be doing sth. wrong.
https://pythonhosted.org/airflow/start.html
$ export AIRFLOW_HOME=~/airflow
$ pip install apache-airflow
Requirement already satisfied
$ airflow initdb
airflow: Command not found
python --version
Python 2.7.10
It's weird - the installation seemed to have worked fine (with some warnings - nothing serious) saying: airflow, flask, etc. successfully installed. But even after restarting the PC (Ubuntu 15.10) airflow seems not to be a command.
A lot of answers and no one mentioned containers. From my perspective airflow in docker, it's much easier, especially for development. Here is probably the best project which supports airflow docker containers.
Here is an example of docker-compose you can take as an example:
And corresponding .env file:
Regarding the plugins dir, it's reserved directory where you can place your custom scripts/lib etc. and airflow will automatically pick them up.
In addition to the above commands, you might have to start the scheduler to allow running of jobs. The command is,
airflow scheduler
It worked for me :
$SLUGIFY_USES_TEXT_UNIDECODE=yes pip3 install apache-airflow
An important addition to all posts.
Apache Airflow changes its package name from airflow to apache-airflow. So all posts in this thread would install Apache Airflow 1.8 as this package still exists.
To install a later version
Also consider which Python version to take. You may install airflow with Python 2 or Python 3.
Using Python 3.6
Using Python 3.7 There are some issues during installing about
Airflow worked with Python 3.7, so there is one PR on incubating side,
just need to bump up a version for a dependency name
tenacity
: http://mail-archives.apache.org/mod_mbox/airflow-commits/201808.mbox/%3CJIRA.13177795.1533763090000.42816.1533763380326@Atlassian.JIRA%3E https://issues.apache.org/jira/browse/AIRFLOW-2876pip install tenacity==4.12.0
Now run Ariflow:
Verify the app is running in the browser by visiting http://localhost:8080.
Then run:
airflow scheduler