Airflow tutorial | Install Airflow | Write and run your first DAG | Apache airflow on Windows Docker

Sdílet
Vložit
  • čas přidán 20. 09. 2023
  • How to Install Airflow on Windows
    Airflow local setup
    Create first airflow dag
    Installing Apache Airflow on Windows A Step-by-Step Guide
    install apache airflow on windows with docker
    install airflow
    airflow scheduler
    airflow windows
    airflow on windows
    How to run Airflow on Windows
    airflow interview questions
    airflow interview questions and answers
    apache airflow windows
    install airflow windows
    airflow installation on windows
    install apache airflow on windows
    airflow install windows
    airflow docker windows
    airflow for windows
    apache airflow installation on windows
    install airflow in windows
    install airflow locally windows
    How to set up Airflow on Windows
    install airflow on laptop
    install airflow on pc 2023
    install airflow on computer
    install airflow on windows 11
    install airflow on windows 10
    install airflow on windows with docker
    install airflow
    airflow docker
    docker windows
    apache airflow
    airflow in windows
    airflow windows installation
    install airflow docker windows
    windows airflow
    pip install airflow
    apache airflow github
    install airflow on windows without docker
    airflow on windows 10
    run airflow on windows with docker
    install airflow docker
    How to develop airflow dags on windows
    Airflow hello world dag
    install airflow on windows without wsl
    install airflow on windows without ubuntu
    install airflow on windows server 2016
    can we install airflow on windows
    can i install airflow on windows
    pip install airflow on windows
    How to install Airflow in Windows with Docker
    How to install Airflow using pip
    How can I install Airflow
    install airflow python
    install airflow locally
    install airflow using docker
    pip install airflow providers
    pip install airflow postgres
    How to Install Apache Airflow on Windows without Docker
    Installation of Airflow Airflow Documentation
    Install Apache Airflow on windows 10 without docker
    How to Install Apache airflow in windows machine using
    Apache Airflow Installation on Windows 10
    How to Install Apache Airflow
    Download Docker Desktop for Windows:
    docs.docker.com/desktop/insta...
    Download Visual Studio Code:
    code.visualstudio.com/download
    Any issues during wsl --update, then please refer below video:
    • How to install Windows...
    dockerfile, docker-compose.yml and welcome_dag.py codes:
    sleek-data.blogspot.com/2023/...
  • Věda a technologie

Komentáře • 86

  • @szymonolejniczak7342
    @szymonolejniczak7342 Před 6 měsíci +2

    I got here from some course on udemy as i wasnt able to set-up docker with their videos. Your alternate way worked perfectly! thank you very much!

    • @SleekData
      @SleekData  Před 6 měsíci

      Dear Friend, Glad it helped!
      To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

  • @mygmail-ti4js
    @mygmail-ti4js Před 7 měsíci +1

    This is really a great Guideline. Thank you for sharing.

    • @SleekData
      @SleekData  Před 7 měsíci

      Dear Friend - Thank you your kind feedback! To stay updated with our future content, I kindly request you to consider subscribing and liking our videos. Your support is valuable to us. If you ever need technical support, please feel free to leave a comment on any of our videos, and we'll be sure to respond promptly or create a video addressing the issue.
      If you could share our video/channel with your friends, we would be so grateful!

  • @trunksssz
    @trunksssz Před 27 dny

    after many tutorial i have watched, only this works on me:) thank youu

    • @SleekData
      @SleekData  Před 25 dny

      Dear Friend, Glad you like them!
      To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

  • @vinodtengli6882
    @vinodtengli6882 Před 5 měsíci

    Thank you so much for sharing very useful video

    • @SleekData
      @SleekData  Před 5 měsíci

      Dear Friend - My pleasure 😊
      To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

  • @NandaAcademies
    @NandaAcademies Před měsícem

    Fantastic tutorial! No one can explain better than this! Of course, I am yet to install docker and airflow, but anyway it should work.

    • @SleekData
      @SleekData  Před 25 dny

      Dear Friend -
      Thank you for your kind words! We're delighted to hear that you're enjoying our content. To stay updated with our future videos, consider subscribing and sharing with your friends. Your support means a lot to us. Thanks again for your encouragement!

  • @sfcsarah
    @sfcsarah Před 7 měsíci +1

    really looking forward to your video on setting up Postgres

    • @SleekData
      @SleekData  Před 7 měsíci +1

      Dear Friend -
      Thank you for your interest! I understand that you're eager to get started, so I'd like to provide you with a high-level overview of the steps required to set up PostgreSQL as your metadata database, even before we create the video tutorial:
      sudo apt install libpq-dev
      sudo apt-get install postgresql
      sudo service postgresql start
      sudo -u postgres psql
      CREATE USER airflow PASSWORD 'airflow';
      CREATE DATABASE airflow;
      GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO airflow;
      Exit
      cd to airflow home
      vi airflow.cfg
      executor = LocalExecutor
      sql_alchemy_conn = postgresql+psycopg2://airflow:airflow@localhost/airflow
      We appreciate your support and would love it if you could like and subscribe to our channel to stay updated with our future content.
      If you could share our video/channel with your friends, we would be so grateful!
      Once again, thank you for your encouragement.

    • @sfcsarah
      @sfcsarah Před 7 měsíci

      @@SleekData Thank you so much! I'll try it out :)

  • @channuangadi7504
    @channuangadi7504 Před 6 měsíci +1

    to the point explanation thank you so much

    • @SleekData
      @SleekData  Před 6 měsíci

      Dear Friend - Thank you your kind feedback!
      To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Once again thank you for your encouragement.

  • @aruk1040
    @aruk1040 Před 3 měsíci

    Thank you so much 😭💘

    • @SleekData
      @SleekData  Před 3 měsíci

      Dear Friend, Glad you like them!
      To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

  • @alaaeldinmanse5228
    @alaaeldinmanse5228 Před 5 měsíci

    I appreciate what you did , and hope you keep going , but there is something i have , the .yml file have more lines than you have in the video , that what i have got from apache airflow website , and i found there is more than on container have been created , Do you have an Explanation for this ? and i can't set my username and password

    • @SleekData
      @SleekData  Před 5 měsíci

      Dear Friend - Setup in this video is intended for development and testing purposes.
      But the yml file may be more suitable for higher environments:
      airflow.apache.org/docs/apache-airflow/2.7.3/docker-compose.yaml
      More over the password generally displayed in the log when you start for the very first time. other wise look at the folder path that i have shown in the video for the location of password file.
      To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

  • @jeffs4810
    @jeffs4810 Před 3 měsíci

    Really enjoying this tutorial, but running into an issue on Windows 11. I can get the container to start if I remove the mounted volume from the YML file, but when the volume is included the container fails after a short time with errors that appear to be related to accessing the mounted folder. I can see that the 'airflow' folder is getting created. The error messages in the container log look something like this:
    FileNotFoundError: [Errno 2] No such file or directory: '/opt/airflow/logs/scheduler/2024-01-11'
    ...
    FileNotFoundError: [Errno 2] No such file or directory: '/opt/airflow/logs/scheduler'
    ...
    PermissionError: [Errno 13] Permission denied: '/opt/airflow/logs'

    • @SleekData
      @SleekData  Před 3 měsíci

      Friend - pls double check docker files you should switch to correct user ids as i have done.

  • @azizkanch5257
    @azizkanch5257 Před 5 dny

    Firstly, thanks for the wonderful content. I have followed the steps precisely. However, while trying to do compose up, I am getting this error
    failed to create network airflow-workspace_default: Error response from daemon: failed to update bridge store for object type *bridge.networkConfiguration: read-only file system.
    Please help me. Thank you!

    • @SleekData
      @SleekData  Před 3 dny

      It indicates Docker is encountering a permission issue while trying to create a network for your Airflow workspace.

  • @sultanchissonobie8376
    @sultanchissonobie8376 Před 7 měsíci

    what version of python do you use?

    • @SleekData
      @SleekData  Před 7 měsíci

      Dear Friend - Currently the apache/airflow:latest and apache/airflow:2.5.2 images are Python 3.8 images.
      Any time you can reach out to this page to get latest information:
      airflow.apache.org/docs/apache-airflow/stable/installation/supported-versions.html
      Good Luck, we appreciate your support and would love it if you could like and subscribe to our channel to stay updated with our future content.
      Also if you could share our video/channel with your friends, we would be so grateful!

  • @pushankarmakar1783
    @pushankarmakar1783 Před 6 měsíci +1

    theres a problem. at 5:44 in my computer its showing
    ✘ sleek-airflow Error 3.9s
    Error response from daemon: pull access denied for sleek-airflow, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
    The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command docker compose -f "docker-compose.yml" up -d --build" terminated with exit code: 1.
    Can you please help me with this
    Edited: nevermind. it was a silly error. im keeping this in case someone makes the same mistake as me. i made the image with the name 'airflowstuff' but used the code given in the description which had the name as 'sleek-airflow' hence it wasnt able o find the image

    • @SleekData
      @SleekData  Před 6 měsíci +1

      Dear Friend -
      Did you complete the build step? during that step you are supposed to give a name for the image, I've given sleek-airflow as the name.
      So i have used sleek-airflow:latest in docker compose, what name did you give?
      once after sucessfull build it should locally create sleek-airflow:latest for you...if this is not available locally then it tries in the remote repo and gives you this error.
      Please watch the video once, you will get it.
      Good Luck, please like and subscribe.

    • @franklynchiemekam1682
      @franklynchiemekam1682 Před 4 měsíci +1

      Thank you, made the same mistake as well and your correction saved me a lot ❤

  • @madtitan44
    @madtitan44 Před 2 měsíci

    Hello , I am getting cannot use relative path to connect to sqllite. Please use absolute path

    • @SleekData
      @SleekData  Před 2 měsíci

      Dude - Pls doublecheck file mounts in docker file, pls maintain the folder hierarchies just like mine.

  • @user-wm1hz8jm6z
    @user-wm1hz8jm6z Před 5 měsíci

    I have a problem in the parte of cmd could you tell me how i can do that

    • @SleekData
      @SleekData  Před 5 měsíci

      Dear friend
      I could you understand your problem, pls add a new command elaborating the issue.
      To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

  • @user-df1lk5fz3u
    @user-df1lk5fz3u Před 5 měsíci

    THANK FOR THE COURSE
    I tried everything went well until I waited for the dag to appear on the web interface I saw nothing and then if I restarted the yaml the password no longer worked PLEASE SOME HELP FOR ME

    • @SleekData
      @SleekData  Před 5 měsíci

      Dear Friend - pls refer the video at 6:10, I have told 2 ways to get your password.
      To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

  • @rajjoshi5111
    @rajjoshi5111 Před 3 měsíci

    hello buddy...thank you for the video...but i am having problem with the localhost:8080 page....it isnt opening and says "This page isn’t working localhost didn’t send any data. ERR_EMPTY_RESPONSE"

    • @SleekData
      @SleekData  Před 3 měsíci

      dude - pls try changing between http https?
      Good Luck, to stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

    • @rajjoshi5111
      @rajjoshi5111 Před 3 měsíci

      @SleekData thanks but the issue was resolved...I just refreshed the file on docker and it worked

  • @muhammadfaridansutariya4411
    @muhammadfaridansutariya4411 Před 5 měsíci

    can i implement this tutorial on production sir?

    • @SleekData
      @SleekData  Před 5 měsíci +1

      Dear Friend - This setup is intended for development and testing purposes, employing SQLite as the metadata database and the Sequential Executor. However, it is not recommended for production environments.
      For production use, it is advisable to use PostgreSQL metadata database and a more robust executor. Alternatively, in a cloud environment, consider utilizing managed Apache Airflow instances like AWS Managed Workflows for Apache Airflow, Google Cloud Composer, or the Airflow integration within Azure Data Factory.
      Also refer below yaml file to get fair idea about production kind of deployments.
      airflow.apache.org/docs/apache-airflow/2.7.3/docker-compose.yaml
      To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

    • @muhammadfaridansutariya4411
      @muhammadfaridansutariya4411 Před 5 měsíci

      can u give me reference tutorial deployment airflow on production sir?@@SleekData

    • @SleekData
      @SleekData  Před 5 měsíci

      Bro - Are you not keen into managed Apache Airflow instances like AWS Managed Workflows for Apache Airflow, Google Cloud Composer, or the Airflow integration within Azure Data Factory?
      You can bring up scalable Airflow in mater of 5 to 10 minutes with these services.. and they are mostly pay as you go cloud model.
      Please note if you want to implement manually there are many things you need to consider:
      Executors (Workers)
      Metadata database
      Not sure what you have decided for these?
      Note: Please add new comment every time, because i do not get notifications on existing comments, so i some time miss to reply..

  • @ahmedtr4305
    @ahmedtr4305 Před měsícem

    Could I schedual execute python script located in my local machine?

    • @SleekData
      @SleekData  Před měsícem

      Dude - To execute a Python script in Apache Airflow, you typically use the PythonOperator provided by Airflow.
      Please search around that you will get an idea.
      Good luck., to stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your engagement.

  • @sureshm8687
    @sureshm8687 Před 16 dny +1

    Hi I am facing an issue with localhost 8080 is not responding

    • @SleekData
      @SleekData  Před 14 dny

      Dude - pls try http vs https as well as localhost vs 127.0.0.1
      Also make sure the port 80 / 8080 is forwarded in your docker config files as i did.
      Good Luck, appreciate if you could like and sub.

  • @shawnschreier5978
    @shawnschreier5978 Před měsícem

    I had set this up perfectly last week and was able to set up some DAGs. However, now I get an error saying localhost did not send any data. Any guidance or help?

    • @SleekData
      @SleekData  Před měsícem

      Dude - Pls try http vs https and localhost vs 127.0.0.1
      Good Luck.

    • @sanikabhosale6513
      @sanikabhosale6513 Před 16 dny

      @@SleekData I am also facing the same error tried all the above solutions by yet stuck please help me out

  • @mathandnatureman
    @mathandnatureman Před 2 měsíci

    Hi ,
    I am getting error while generating the build (4:02) like
    "ERROR: failed to solve: process "/bin/bash -o pipefail -o errexit -o nounset -o nolog -c apt-get update && apt-get -y install git && apt-get clean" did not complete successfully: exit code: 100"
    could you please help me out. Thanks.

    • @SleekData
      @SleekData  Před měsícem

      pls try to install git and retry.

  • @A_AMARI
    @A_AMARI Před 2 měsíci

    hi sir, can you please check on this , when i click on the compse up it shows me this error " sleek-airflow Error 2.8s
    Error response from daemon: pull access denied for sleek-airflow, repository does not exist or may require 'docker login': denied: requested access to the resource is denied" can you help me please

    • @SleekData
      @SleekData  Před 2 měsíci

      Dude - sleek-airflow is build locally in the previous step, pls check it since its not available locally it is searching in the remote repo.
      Good luck, To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

    • @A_AMARI
      @A_AMARI Před 2 měsíci

      thanks a lot@@SleekData

  • @basavarajpn4801
    @basavarajpn4801 Před 3 měsíci

    Am getting error when running in visual code for welcome_dag.py saying that "No Module named Airflow",
    Please help me with this

    • @SleekData
      @SleekData  Před 3 měsíci

      Dude - You can not run in vs code, you need develop in vs code and the execution has to be done in side docker container using airflow UI.

  • @abubakarsiddiquem9358
    @abubakarsiddiquem9358 Před 2 měsíci

    Are these steps same for macOs?

    • @SleekData
      @SleekData  Před měsícem

      Dude - Once you install docker and vs code for mac, the remaining steps are almost same. Good Luck.

  • @Wolololo_Wololo
    @Wolololo_Wololo Před 2 měsíci

    Hi, When I compose up, it shows the DAG Import Errors at the UI
    I used some module in the DAG and I installed the module locally. How to install the module into docker container?
    Broken DAG: [/opt/airflow/dags/podcast-summary.py] Traceback (most recent call last):
    File "", line 219, in _call_with_frames_removed
    File "/opt/airflow/dags/podcast-summary.py", line 7, in
    import xmltodict
    ModuleNotFoundError: No module named 'xmltodict'

    • @SleekData
      @SleekData  Před 2 měsíci +1

      Hi Dude - pls watch the next video, i have also given the link below, it talks about similar error and 2 ways to address it.
      czcams.com/video/OuRiX1XQgyY/video.html
      Good luck, pls like and subscribe to stay up to date.

  • @mamadoubabadjanballo1977
    @mamadoubabadjanballo1977 Před měsícem

    Hi, please i need your help. I can not lunch airflow. this is the error i am getting (
    sleek-airflow Error 3.3s
    Error response from daemon: pull access denied for sleek-airflow, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
    * The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command docker compose -f "docker-compose.yml" up -d --build" terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.

    • @SleekData
      @SleekData  Před měsícem

      Brother - Looks like the docker image build step was not done or not successful.
      Due that sleek-airflow is not available locally as a result it tries to find in the public docker remote repository.
      Please retry the video step by step, it should work.
      Good Luck, to stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!

  • @IuryLeal-zj8ec
    @IuryLeal-zj8ec Před 2 měsíci

    It didnt workout when i cliked on the link to open the webairflow interface. what can i do?

    • @SleekData
      @SleekData  Před 2 měsíci

      Dude - Pls revisit the video and see if you've opened the port in the docker file.
      also try with http vs https and also local host vs 127.0.0.1.
      Good luck, t
      o stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your comment.

  • @MitchMcCall-bd4ul
    @MitchMcCall-bd4ul Před 11 dny

    the docker image you have is out of date, i am refused access and i cannot find the docker image file on dockerhub

    • @kian69topgun1
      @kian69topgun1 Před 9 dny

      came across the same error myself.. did you find any other image to run ?

    • @MitchMcCall-bd4ul
      @MitchMcCall-bd4ul Před 7 dny

      @kian69topgun1 no, my advice is dont run airflkw off of docker and find a tutorial that doesnt force you to use docker because its ultimately unnecessary just use a virtual environment in ubuntu

    • @SleekData
      @SleekData  Před 3 dny

      Dear Friend -
      Did you complete the build step? during that step you are supposed to give a name for the image, I've given sleek-airflow as the name.
      So i have used sleek-airflow:latest in docker compose, what name did you give?
      once after sucessfull build it should locally create sleek-airflow:latest for you...if this is not available locally then it tries in the remote repo and gives you this error.
      Please watch the video once, you will get it.
      Good Luck, please like and subscribe.

  • @StsGamin
    @StsGamin Před 2 měsíci

    Hy there is a problem in launching the UI as its not connecting. I tried to delete and rebuild the image, tried https still its not connecting. What to do ??

    • @SleekData
      @SleekData  Před 2 měsíci

      Dude - did you try opening the port in docker compose file?
      ports:
      - "8080:8080"
      also pls check if there are any errors in the docker log?

    • @deepaksinghchauhan489
      @deepaksinghchauhan489 Před 2 měsíci

      @@SleekData Hi bro I also face the same issue, my 8080 port is in use for some other thing, So I enter
      9000:9000 and then I ran, the container was built and working properly but when I clicked on for UI . It shows "This page Isn't working" and also, the login interface is not coming in my browser for airflow login.
      Although password is showing in my airflow folder.
      please help me in resolving this issue.

  • @SouhaCherif-vp2vw
    @SouhaCherif-vp2vw Před měsícem

    hey i want to use sudo command and it keeps asking me to write the airflow password, but i cant seem to find it anywhere

    • @SleekData
      @SleekData  Před 25 dny

      Dude - Please play the video side by side may be on another device/phone and check, it should work.
      Good luck.

  • @hurstilthymy4943
    @hurstilthymy4943 Před měsícem

    I am getting a
    Import "airflow.operators.python_operator"
    How can I fix this?

    • @YukeshAS
      @YukeshAS Před měsícem

      instead of python_operator use python, hopefully that will fix it!

    • @SleekData
      @SleekData  Před 25 dny

      pls try this - from airflow.operators.python_operator import PythonOperator

  • @hemav9981
    @hemav9981 Před 5 měsíci

    while running dockerfile,it is showing error.It's showing "error during connect".Please help me.

    • @SleekData
      @SleekData  Před 5 měsíci

      Dear Friend - this is error is not sufficient to provide some suggestions.
      May be please restart the PC and retry.
      To stay updated with our future content, I kindly request you to consider subscribing and liking our videos.
      If you could share our video/channel with your friends, we would be so grateful!
      Thank you for your encouragement.

  • @ronin959
    @ronin959 Před měsícem

    i have a problem - "(root) Additional property coversion is not allowed" (5:42)

    • @SleekData
      @SleekData  Před měsícem +1

      Dude - May be you are running airlow with root, pls check docker and docker compose files...
      first try to exactly follow my files and then once every thing is up and running then do your changes on top.

  • @mohsinrajpoot3780
    @mohsinrajpoot3780 Před 6 měsíci

    where is content for dockerfile

    • @SleekData
      @SleekData  Před 6 měsíci

      Dear friend - Here you go, you can also find the link in description:
      sleek-data.blogspot.com/2023/09/how-to-install-airflow-on-windows.html
      Good luck, pls don’t forget to hit like and subscribe.

  • @abinashkumar1533
    @abinashkumar1533 Před 2 měsíci

    these three tasks has been executed successfully , But where these tasks is excuted I do not know . How I executed this task I do not know. Just I know I have executed these tasks.
    A little knowlege is dangerous thing.

    • @SleekData
      @SleekData  Před měsícem

      Hi Dude - This is playlist, please watch full playlist you would get better understanding, it is just around 1 hour.
      czcams.com/play/PLc2EZr8W2QIAI0cS1nZGNxoLzppb7XbqM.html&si=iAK3qM2qcZ69LgSi