0
0
Apache Airflowdevops~10 mins

Installing Airflow locally - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to install Apache Airflow using pip.

Apache Airflow
pip install apache-airflow[1]
Drag options to blanks, or click blank then click option'
A--upgrade
Binstall
C==2.7.1
D--version
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' after 'pip install' again causes an error.
Using '-upgrade' instead of '--upgrade' is incorrect syntax.
Using '--version' shows version info, not installs.
2fill in blank
medium

Complete the command to initialize the Airflow database after installation.

Apache Airflow
airflow db [1]
Drag options to blanks, or click blank then click option'
Ainit
Bupgrade
Cinitdb
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' tries to run the scheduler or webserver, not initialize DB.
Using 'initdb' is deprecated in newer Airflow versions.
Using 'upgrade' is for database migrations, not initial setup.
3fill in blank
hard

Fix the error in the command to start the Airflow webserver on port 8080.

Apache Airflow
airflow webserver [1] 8080
Drag options to blanks, or click blank then click option'
A--host
B-p
C-d
D--port
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-p' is not recognized by Airflow webserver command.
Using '--host' sets the host, not the port.
Using '-d' is for daemon mode, not port.
4fill in blank
hard

Fill both blanks to create a virtual environment and activate it before installing Airflow.

Apache Airflow
python3 -m [1] airflow_env && source airflow_env/[2]
Drag options to blanks, or click blank then click option'
Avenv
Bbin/activate
CScripts/activate
Dvirtualenv
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'virtualenv' instead of 'venv' is valid but less recommended in Python 3.
Using 'Scripts/activate' is for Windows, not Unix-like systems.
Forgetting to activate the environment causes package installs globally.
5fill in blank
hard

Fill all three blanks to set environment variables for Airflow home, initialize the database, and start the scheduler.

Apache Airflow
export AIRFLOW_HOME=[1] && airflow db [2] && airflow [3]
Drag options to blanks, or click blank then click option'
A"~/airflow"
Binit
Cscheduler
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' instead of 'scheduler' will cause an error.
Not quoting the path can cause issues if it contains spaces.
Skipping database initialization causes scheduler to fail.