Installing Airflow
This topic includes instructions for using package managers to download and install Apache Airflow from the EEP repository.
Installation on a Server Node or Edge Node
mapr-airflowmapr-airflow-api-servermapr-airflow-dag-processormapr-airflow-scheduler
The mapr-airflow-api-server,
mapr-airflow-dag-processor and
mapr-airflow-scheduler, packages depend on
mapr-airflow. The package manager automatically installs
mapr-airflow when you install either
mapr-airflow-api-server,
mapr-airflow-dag-processor or
mapr-airflow-scheduler. Execute the following commands as
root or by using sudo on an HPE Data Fabric cluster.
- On a node where you want to install Airflow, install
mapr-airflow,mapr-airflow-api-server,mapr-airflow-dag-processorandmapr-airflow-scheduler:- On Ubuntu:
apt-get install mapr-airflow mapr-airflow-api-server mapr-airflow-dag-processor mapr-airflow-scheduler - On RHEL/CentOS:
yum install mapr-airflow mapr-airflow-api-server mapr-airflow-dag-processor mapr-airflow-scheduler - On SLES:
zypper install mapr-airflow mapr-airflow-api-server mapr-airflow-dag-processor mapr-airflow-scheduler
rootuser. - On Ubuntu:
- Run
configure.sh -R./opt/mapr/server/configure.sh -R
Installation on a Client Node
Airflow can be installed on a client node. The installation steps are the same as for a server node or edge node. However, after installation on a client node, you must manage all Airflow services manually. For example:
/opt/mapr/airflow/airflow-<version>/bin/airflow.sh [start|stop] api-server/opt/mapr/airflow/airflow-<version>/bin/airflow.sh [start|stop] dag-processor/opt/mapr/airflow/airflow-<version>/bin/airflow.sh [start|stop] schedulerInstallation on a FIPS Node
- Install Airflow as described in Installation on a Server Node or Edge Node.
- While logged on as the
rootuser, run the repair tool:<airflow_home>/bin/repair_pip_depends.sh - Run the
configure.shscript:/opt/mapr/server/configure.sh -R - Update the Airflow configuration to the FIPS support
hash:
Change "caching_hash_method = md5" to "caching_hash_method = sha256" - Restart Airflow services. See Starting, Stopping, and Restarting Airflow Services.