0
0
Apache Airflowdevops~5 mins

Installing Airflow locally - Quick Revision & Summary

Choose your learning style9 modes available
Recall & Review
beginner
What is Apache Airflow used for?
Apache Airflow is a tool to help schedule and manage workflows or tasks automatically, like setting reminders to do chores but for computer jobs.
Click to reveal answer
beginner
Which command installs Apache Airflow using pip with constraints?
Use pip install apache-airflow==2.7.1 --constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.7.1/constraints-3.12.txt to install Airflow safely with matching dependencies.
Click to reveal answer
intermediate
Why do we use constraints file when installing Airflow?
Constraints file locks the versions of Airflow dependencies to avoid conflicts and errors, like following a recipe exactly to bake a cake.
Click to reveal answer
beginner
What is the purpose of initializing the Airflow database?
Initializing the database sets up the place where Airflow stores info about tasks and workflows, like setting up a notebook to track your to-do list.
Click to reveal answer
beginner
How do you start the Airflow web server locally?
Run airflow webserver --port 8080 to start the Airflow web interface on your computer at port 8080.
Click to reveal answer
What is the first step to install Airflow locally?
ACreate a DAG file
BRun airflow webserver
CInitialize Airflow database
DSet up a Python virtual environment
Which command installs Airflow with the correct dependencies?
Apip install apache-airflow==2.7.1 --constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.7.1/constraints-3.12.txt
Bpip install apache-airflow --constraint constraints.txt
Cpip install apache-airflow
Dpip install airflow
What does the command airflow db init do?
AStarts the Airflow scheduler
BStarts the Airflow webserver
CInitializes the Airflow metadata database
DRuns all workflows
Which port does Airflow webserver use by default when started locally?
A8080
B5000
C80
D443
Why is it recommended to use a virtual environment for Airflow?
ATo speed up Airflow
BTo isolate Airflow and its dependencies from other Python projects
CTo make Airflow run on Windows
DTo avoid using pip
Describe the steps to install Apache Airflow locally on your computer.
Think about preparing your workspace, installing, setting up storage, and then running the app.
You got /4 concepts.
    Explain why using a constraints file is important when installing Airflow.
    Consider how following exact instructions helps avoid mistakes.
    You got /4 concepts.