Air Flow

# apt-get install python3-venv
# mkdir /opt/airflow
$ python3 -m venv .env
$ source .env/bin/activate
$ export AIRFLOW_HOME=/opt/airflow
$ AIRFLOW_VERSION=2.3.2
$ PYTHON_VERSION="$(python3 --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
$ CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
$ pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
$ airflow db init
$ airflow users create --role Admin --username admin --email admin --firstname admin --lastname admin --password admin

Consulte a versão disponível

%d blogueiros gostam disto: