在Centos7上安装Airflow2.0
Airflow支持MYSQL、POSTGRESQL及sqllite元数据库,默认使用sqllite。2.0版本支持mysql,不支持mariadb。
本文主要记录基于mysql安装AIRFLOW2.0版本。
安装环境:
python3以上版本、
mysql5.7
pip20.3.3
安装步骤:
- 安装系统包
yum install python、wget、gcc、python-devel.x86_64
- 安装pip
wget https://bootstrap.pypa.io/get-pip.py [root@localhost software]# python get-pip.py DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Collecting pip Downloading pip-20.3.3-py2.py3-none-any.whl (1.5 MB) |████████████████████████████████| 1.5 MB 14 kB/s