필요없는거 지웁시다.
Example DAG 삭제
Example DAG는 Airflow 설치하면 기본으로 DAG등록이 됩니다. 한번 구경하고 우리가 직접 사용할 DAG를 올려야하니 지워줍니다.
Airflow가 설치된 디렉토리에서 airflow.cfg 를 연다
sudo vi airflow.cfg
참고: 이전글 기준
/home/ubuntu/airflow/airflow.cfg
# Whether to load the DAG examples that ship with Airflow. It's good to
# get started, but you probably want to set this to ``False`` in a production
# environment
#
# Variable: AIRFLOW__CORE__LOAD_EXAMPLES
#
load_examples = True <<True 에서 False로 변경하자.
load_examples = False
# DB에도 알려줘야한다.
airflow db init
# 리스타트도 해줘야함.
sudo systemctl start airflow-webserver
sudo systemctl start airflow-scheduler
'Dev Ops > Airflow' 카테고리의 다른 글
[Airflow 시리즈] Airflow + Mysql DB그리고... 대Python (1) | 2024.10.14 |
---|---|
[Airflow 시리즈] AWS Server 구성 (1) | 2024.10.14 |
[Airflow] 설치 1.10버전 (0) | 2022.07.26 |