Last active
November 25, 2020 08:37
-
-
Save lorne-luo/22a07e17b7c1509b8b32e79cedf2270a to your computer and use it in GitHub Desktop.
Airflow installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://airflow.apache.org/docs/stable/installation.html | |
sudo apt-get update | |
sudo apt-get install -y build-essential mysql-server libmysqlclient-dev libblas-dev libatlas-base-dev | |
sudo apt-get install -y --no-install-recommends \ | |
freetds-bin \ | |
krb5-user \ | |
ldap-utils \ | |
libffi6 \ | |
libsasl2-2 \ | |
libsasl2-modules \ | |
libssl1.1 \ | |
locales \ | |
lsb-release \ | |
sasl2-bin \ | |
sqlite3 \ | |
unixodbc | |
mkdir -p /opt/virtualenv | |
cd /opt/virtualenv | |
python3 -m venv airflow | |
source /opt/virtualenv/airflow/bin/activate | |
pip install \ | |
apache-airflow==1.10.12 \ | |
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-1.10.12/constraints-3.7.txt" | |
pip install 'apache-airflow[mysql]' | |
pip install 'apache-airflow[celery]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment