Home Day1
Post
Cancel

Day1

Commands

1
2
3
4
5
6
7
    # create an admin user
    airflow users create \
        --username admin \
        --firstname Peter \
        --lastname Parker \
        --role Admin \
        --email spiderman@superhero.org
  • test tasks : airflow tasks test [dag name] [task name] [extra params]

  • get variable : airflow variables get [var name]

  • set variable : airflow variables set [var name]

TIL

  • default id,pw in case using docker-compose is admin.
  • setting airflow dag env variable link
This post is licensed under CC BY 4.0 by the author.

Trending Tags