Загрузка...

Apache Airflow on Windows: WSL Installation & Configuration

Learn how to set up Apache Airflow on Windows using Windows Subsystem for Linux (WSL) in this comprehensive tutorial. We’ll walk you through every step, from installing WSL and configuring Python, to installing Airflow and running your first DAG. Perfect for beginners and developers looking to manage workflows efficiently on a Windows system.

commands:

1.
wsl --install

2.
sudo apt update

3.
sudo apt install python3 python3-pip

4.
python3 -m venv airflow_env

5.
mkdir airflow_project

6.
source airflow_venv/bin/activate

7.
pip install "apache-airflow[celery]==3.1.8" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.1.8/constraints-3.10.txt"

8.

export AIRFLOW_HOME=~/airflow

9.
pip install apache-airflow-providers-fab

10.

airflow db migrate

11.
nano ~/airflow/airflow.cfg

12.
auth_manager = airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager

13.
airflow db reset

14.
airflow users create \
--username admin \
--firstname Mona \
--lastname Smith \
--role Admin \
--email admin@example.com
15.
airflow api-server

Видео Apache Airflow on Windows: WSL Installation & Configuration канала Dade Goo
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять