Challenge - 5 Problems
Airflow Local Installation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediateAirflow Initialization Command Output
What is the output of the command
airflow db init when run for the first time after installing Airflow locally?Apache Airflow
airflow db init
Attempts:
2 left
💡 Hint
This command sets up the Airflow metadata database for the first time.
✗ Incorrect
The
airflow db init command creates the necessary tables in the metadata database and confirms completion with 'Done'.🧠 Conceptual
intermediateAirflow Home Directory Purpose
What is the main purpose of the
AIRFLOW_HOME directory when installing Airflow locally?Attempts:
2 left
💡 Hint
Think about where Airflow keeps its settings and logs on your local machine.
✗ Incorrect
The
AIRFLOW_HOME directory is where Airflow stores its configuration file (airflow.cfg), logs, and the default SQLite database.🔀 Workflow
advancedCorrect Order to Install Airflow Locally
What is the correct order of commands to install and start Airflow locally using the default SQLite database?
Attempts:
2 left
💡 Hint
Think about installing first, then initializing, then creating user, then starting the webserver.
✗ Incorrect
First, install Airflow with pip. Then initialize the database. Next, create an admin user. Finally, start the webserver to access the UI.
❓ Troubleshoot
advancedFixing Airflow Webserver Port Conflict
You try to start the Airflow webserver with
airflow webserver --port 8080 but get an error that the port is already in use. Which command correctly starts the webserver on port 8090 instead?Attempts:
2 left
💡 Hint
Use the correct long option syntax for port.
✗ Incorrect
The correct syntax to specify the port is
--port 8090. Short option -p is not supported and other syntaxes are invalid.✅ Best Practice
expertRecommended Executor for Local Airflow Installation
Which Airflow executor is recommended for a simple local installation for learning and development purposes?
Attempts:
2 left
💡 Hint
Consider the simplest executor that requires no extra setup.
✗ Incorrect
The
SequentialExecutor runs tasks one at a time and is the default for local installations. It requires no additional services.