Pre-Upgrade Steps for Airflow

Complete the following steps before you upgrade Airflow with or without the Installer.

About this task

Use these steps:

Procedure

  1. Stop the airflow-scheduler and airflow-webserver services if they are installed:
    maprcli node services -name airflow-webserver -action stop -nodes <nodes list> 
    maprcli node services -name airflow-scheduler -action stop -nodes <nodes list> 
  2. If necessary, back up the Airflow configuration file. If you made configuration changes that you want to carry over to the next version, you must back up the configuration file. Typically, the following configuration file contains changes:
    • <airflow_home>/conf/airflow.cfg
    To back up the configuration file, copy the file to a location outside the installation directory. After upgrading, you can reapply changes to the updated Airflow installation using the backup.
  3. Back up the /dags directory if it is present under the <airflow_home> directory. To back up the /dags directory, copy the directory to a location outside the <airflow_home> directory. After upgrading, you can reapply changes to the updated Airflow installation using the backup.
    For more information about upgrading Airflow, see: