Replies: 2 comments 1 reply
-
|
Hi, I recently went through the same setup process with Airflow 3.x and had similar confusion, especially regarding authentication and initialization. A few clarifications that might help:
airflow standaloneAirflow automatically generates the admin password and stores it in: You can retrieve it using: cat ~/airflow/simple_auth_manager_passwords.json.generated
airflow db migrateshould be run before starting Airflow, but it is also automatically handled when using
Thanks for sharing your notes — they are very helpful for beginners! |
Beta Was this translation helpful? Give feedback.
-
|
Would be even better if one of you updates the quick-quide with those things while you still remember what you stumbled upon. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have spent a few hours trying to set up Airflow and install a simple DAG. The DAG page focuses too much on explaining what a DAG is, rather than on how to create one.
As a beginner, I have these questions when I set it up.
airflow db migrate, shouldn't it be run after Airflow is started? Is it required to do that every new DAG is added?Anyway, I have summarized the steps how to set up Airflow and install DAG. Here is my note.
Setup
Install Airflow
Initialize Airflow
Disable loading examples
(You don't really need this step. But there are too many examples and they might be distracting.)
Start Airflow
Add DAG
Create a file
my_example_dag.pyin${AIRFLOW_HOME}/dagswith following content.Check whether dag is loaded
(By default, Airflow looks for new DAG every 5 minutes.)
Enable DAG
Check DAG status
Login to web console (
htttp://localhost:8080). Default user name and password are stored in${AIRFLOW_HOME}/simple_auth_manager_passwords.json.generated.Clean up
Beta Was this translation helpful? Give feedback.
All reactions