close

How to run Airflow on Windows

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to run Airflow on Windows in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to run Airflow on Windows?

  1. How to run Airflow on Windows?

    You can activate bash in windows and follow the tutorial as is. I was able to get up and running successfully following above.

  2. run Airflow on Windows

    You can activate bash in windows and follow the tutorial as is. I was able to get up and running successfully following above.

Method 1

I’m runnig airflow on windows 10 using docker.

1) First you need to install docker on your windows .

2) Run command docker version from command prompt if you get output means docker installed succesfuuly

2) Then you need to pull airflow image using command docker pull puckel/docker-airflow

3) Next step is to run image docker run -d -p 8080:8080 puckel/docker-airflow webserver

4) This will run airflow and you can access webui at localhost:8080

5) To copy dags use this command docker cp sample_dag.py containerName:/usr/local/airflow/dags

To access airflow utility you need to access the bash shell of container . you can do so using docker exec -it containerName bash . Once you inside bash shell you can run command line utilities ex **airflow list_dags**

Method 2

You can activate bash in windows and follow the tutorial as is. I was able to get up and running successfully following above.

Once you are done installing, edit airflow.cfg to point all your configurations to somewhere in your windows system rather than lxss (ubuntu) since there are bugs around ubuntu not showing files written by windows system.

Conclusion

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read