Installing and Running Airflow on a small AWS EC2 Instance

Поделиться
HTML-код
  • Опубликовано: 11 янв 2023
  • Running Apache Airflow on a small AWS EC2 Instance
    Many people think Airflow is resource-consuming, but you can install and run it on a machine with only 1 CPU and 2 GB or RAM.
    🏆 BECOME A PRO: www.udemy.com/course/the-comp...
    👍 Smash the like button to become an Airflow Super Hero!
    ❤️ Subscribe to my channel to become a master of Airflow
    🚨 My Patreon: / marclamberti
    The materials: robust-dinosaur-2ef.notion.si...
    Enjoy 🫶

Комментарии • 51

  • @noahfisher1955
    @noahfisher1955 Год назад +1

    This video was such a tremendous help, thank you so much Marc :)

  • @Orionalpha48
    @Orionalpha48 Год назад +3

    Fantastic video. Got it up and running in no time. Simple yet comprehensive video that came out just in time to help me with my project.

  • @anirudhnegi4523
    @anirudhnegi4523 Год назад

    Great work Marc. Helpful content!

  • @ragibshahriar7959
    @ragibshahriar7959 6 месяцев назад

    Great work Marc! Please keep it up

  • @user-fe2jf4vm5c
    @user-fe2jf4vm5c 6 месяцев назад

    Simple and great explanation!!! Thanks a lot

  • @siddhisail7105
    @siddhisail7105 8 месяцев назад +1

    This video is a blessing for me. Thank you so much for making this.

  • @AlexHitchon
    @AlexHitchon 3 месяца назад

    Hey great vid Marc was able to follow along just surprised we need postgres. I found this useful to get me started on my personal project of taking some data and writing to a SQL server db daily. Thanks

  • @LoveisHell85
    @LoveisHell85 Год назад +2

    Airflow on Fargate next please! Thank you so much for your work.

  • @xmagcx1
    @xmagcx1 Год назад

    excellent example

  • @ccc_ccc789
    @ccc_ccc789 2 месяца назад

    Fantastic! Thanks Marc!

  • @ChinmaySathe-bx4ck
    @ChinmaySathe-bx4ck 2 месяца назад

    You are a life save

  • @alexanderpotts8425
    @alexanderpotts8425 Год назад

    Thanks for this. I once got Airflow to start on a Micro instance with an external database 😂but once I installed the Databricks operators it was game over from a disk space POV

  • @thghtfl
    @thghtfl 10 месяцев назад +1

    Thanks for the video, Marc. It was unclear though how it differs from running on 4GB or 8GB instances because I didn't see any specific points on memory allocation. Also, I tried to run Airflow in a Docker container on a 2GB ec2 instance, but at some point, the instance stopped responding for some reason. I wasn't able to find out whether Airflow or Docker caused the issue, but for me, it didn't work.

  • @ML-bu7tu
    @ML-bu7tu Год назад

    Hello ! Your video helped me a lot! What should I do if I want to modify the port number from 8080 to 8081 ?

  • @user-vb7im1jb1b
    @user-vb7im1jb1b 9 месяцев назад +1

    Hi Marc, again, thanks for your videos. After running airflow on aws ec2 instance, can I still follow your "Apache Airflow: The Hands-On Guide" Course on Udemy without any problems? What happens when I stop the ec2 instance for later resume? Do I need to recreate everything again from scratch? How can I avoid that?

  • @ronakshah6336
    @ronakshah6336 2 месяца назад

    Can you make video how should we do airflow for windows rather than ubantu

  • @IvanRmz27
    @IvanRmz27 Год назад

    Do you have an azure equivalent video? Thanks!

  • @kaushalkrishna5249
    @kaushalkrishna5249 9 месяцев назад +1

    Will webserver run even if we close terminal ?
    Also how will we run both webserver and scheduler in background even after closing terminal ?

  • @0kazaki
    @0kazaki Год назад

    If I want to deploy airflow in a production environment with multiple workers for scalability, how should I do it ? I assume with kubernetes?

  • @danielmawdsley157
    @danielmawdsley157 Год назад +1

    Great video! Have you considered making a terraform script so all of these steps could be deployed together?

    • @MarcLamberti
      @MarcLamberti  Год назад +1

      Nop, but if you wanna partner on that I would be happy 🫶

  • @guruprasadbs
    @guruprasadbs Год назад

    Hi, where are those dag files stored

  • @parashualamel6104
    @parashualamel6104 2 месяца назад

    Iam facing while mapping sql alchemy connection with postgres when i tried with what you said its not reflecting to correspong variable

  • @javiercavieres2843
    @javiercavieres2843 11 месяцев назад

    Why when i hit the command airflow db init that don't create de airflow folder?

  • @cesarofuchi
    @cesarofuchi Год назад

    python3 -m venv venv is missing from the notion page

  • @harishmahale1
    @harishmahale1 4 месяца назад

    How do we disable the example dags and reduce the clutter in web UI?

  • @jimaustin3608
    @jimaustin3608 9 месяцев назад

    Anyone notice that the written command sequence is different from the tutorial verbal sequence?
    For example (4:25), ‘python3 -m venv venv’ is left out of the written seq; necessary to create the venv directory with the virtual environment.
    Then the lib install (sudo apt-get install libpq-dev) comes before the virtual environment activation (source venv/bin/activate). (don’t know if this is a problem)
    Since the EC2 instance works in the tutorial, might be a good idea to use it to ‘fix’ the written sequence … or just follow.

  • @dipeshg8581
    @dipeshg8581 7 месяцев назад

    Sir please can you tell how to stop all of airflow components and restart them in one single command. so that changes can be made easily

  • @user-ze7sp4xu3k
    @user-ze7sp4xu3k 4 месяца назад

    can you make it with docker ? and kub8 ?

  • @harishmahale1
    @harishmahale1 4 месяца назад

    How do we keep the scheduler always running?

  • @GMedchess
    @GMedchess Год назад

    The tutorial works but I have a problem, The scheduler does not appear to be running. ... This happened after I close the shh connection, but the webserver is still active.
    I need use this airflow to schedule a periodic task what should I do ? ... How do I keep the scheduler active

  • @user-fm2fx8np4h
    @user-fm2fx8np4h 4 месяца назад

    In cases where you are installing certain "latest versions" (e.g. airflow 2.5.0, python 3.10, etc.), can you mention if we should continue with those versions in the video or find out the actual latest version while installing. Will installing another highest latest version cause any issues with rest of the steps?

  • @hjop010
    @hjop010 Год назад +1

    Hi Marc. Can you give an idea of montlhy costs for this setup? Thanks!

    • @JeanBzh
      @JeanBzh Год назад

      $0.023 per hour, so $201 per year ($16.80 per month)
      Prices vary depending on the region you select

  • @user-c3p0-zk1mr
    @user-c3p0-zk1mr 9 месяцев назад

    Awesome video. Is it possible to install airflow via cloud9 (it runs on ec2 and can be stopped anytime)?

  • @user-fd2vd3po3i
    @user-fd2vd3po3i 6 месяцев назад

    Hello Marc,
    i setup Airflow on ec2, using your video. I was able to successfully install it but I keep getting this error "The scheduler does not appear to be running. Last heartbeat was received 20 hours ago."
    How can i fix it.
    thank you

  • @kikecastor
    @kikecastor Год назад

    Beautiful video, thank you!
    Two questions:
    If I shut down my computer, will the dags still run in the cloud?
    Can anyone enter with the public ipv4 dns 12:42 or can only I enter?

    • @MarcLamberti
      @MarcLamberti  Год назад

      correct

    • @kikecastor
      @kikecastor Год назад

      @@MarcLamberti Awesome, thank you!

    • @MrMadmaggot
      @MrMadmaggot Год назад

      @@MarcLamberti Correct what?

    • @user-mz3be3sw6h
      @user-mz3be3sw6h 4 месяца назад

      @@MrMadmaggot shutdown pc - resources still run in the cloud.
      Can anyone enter... -Security is not my best friend, but this does not look secure at all to me. Anyone with the link can enter for sure.

    • @MrMadmaggot
      @MrMadmaggot 4 месяца назад

      How is it possible? How the dags can run if the Instance is shutdown?@@user-mz3be3sw6h

  • @EliaMartali
    @EliaMartali Год назад

    Tried this with azure VMs and got some errors... I had to give up lol

  • @jeanmarieabengzoa2600
    @jeanmarieabengzoa2600 5 месяцев назад

    I have question. It is important to install postgresql before?

  • @nathanielsolomon917
    @nathanielsolomon917 Месяц назад

    Encountered and issue with 10:16 airflow init db. Error
    Error : psycopg2.errors.InsufficientPrivilege: permission denied for schema public
    Solution that worked for me: ALTER DATABASE airflow_db OWNER TO airflow_user;
    Note I am using the latest airflow 2.9.1 as of this point

    • @alpacajin6868
      @alpacajin6868 Месяц назад

      tysm! ran into the same issue here