Post-Upgrade Steps for Airflow
Complete the following steps after you upgrade Airflow with or without the Installer.
About this task
Use these steps:
- Run
configure.sh -R
to update theairflow.cfg
file:/opt/mapr/server/configure.sh -R
- Migrate any custom configuration settings (especially database-related settings)
into the
<airflow_home>/conf/
directory. For example, if MySQL is used as the database, install themysqlclient
by using the following steps:- Run
.<airflow_home>/build/env/bin/activate
- Run
pip install mysqlclient==2.2.0
- Run
deactivate
- Run
- For upgrades from an older version of Airflow to a newer version, run the
Airflow database upgrade tool:
- Use the following command to migrate the
database:
airflow db migrate
- Create your default
connections:
airflow connections create-default-connections
- Use the following command to migrate the
database:
- Start the
airflow-scheduler
andairflow-webserver
services:maprcli node services -nodes <hostname> -name airflow-scheduler -action restart maprcli node services -nodes <hostname> -name airflow-webserver -action restart
- Optional: If using the default SequentialExecutor, create a user. For
example:
airflow users create --username any_user --firstname any_user --lastname any_user -p any_user --role Admin --email admin@example.org