Apache Airflow mpack for ambari. Mpack allows you to install/configure airflow directly from ambari.
Apache Airflow version included: 1.9.0
- Stop Ambari server.
- Install the Apache Airflow Mpack on Ambari server.
- Start Ambari server.
ambari-server stop
ambari-server install-mpack --mpack=airflow-service-mpack.tar.gz
ambari-server start
- Stop Ambari server.
- Upgrade the Apache Airflow Mpack on Ambari server.
- Start Ambari server.
ambari-server stop
ambari-server upgrade-mpack --mpack=airflow-service-mpack.tar.gz
ambari-server start
- Action - Add service.
- Select Apache Airflow service.
- Choose destination server.
- You may configure Apache Airflow, change home folder.
- Deploy!
If you want to run apache airflow in virtual environment, you should modify startup script "AIRFLOW_HOME/airflow_control.sh".
Example:
#!/bin/bash
export AIRFLOW_HOME=/usr/local/airflow/airflow/ && source /usr/local/airflow/airflow_venv/airflow/bin/activate && /usr/local/airflow/airflow_venv/airflow/bin/airflow $1 --pid /usr/local/airflow/airflow/airflow-sys-$1.pid