0. 준비<필요한 것> python conda 가상환경 arflow postgreSQL Redis 1. 시스템 사용자 생성 Airflow 전용의 새로운 사용자를 생성한다. ]# adduser airflow # 사용자 생성 ]# passwd airflow # 비밀번호 설정 ]# usermod -g cncity airflow # primary group 변경 (cncity) ]# usermod -aG wheel airflow # secondary group 추가 (wheel) ]# id airflow uid=2003(airflow) gid=2000(cncity) groups=2000(cncity),10(wheel) 2. Airflow 사전 설정 2-1. Meta Database 구성 PostgreSQL으로 Airflow Meta Database를 구성한다. # postgres 계정으로 실행 -- 사용자 생성 create user airflowuser with encrypted password ' ##airflowuser_94RMJM ' ; -- Database 생성 create database airflow_celery owner postgres encoding ' utf-8 ' lc_collate ' C ' lc_ctype ' ko_KR.UTF-8 ' template ' template0 ' ; -- 사용자에 데이터베이스 전제 권한 부여 grant all privileges on database airflow_celery to airflowuser; # airflowuser 계정으로 실행 -- 스키마 생성 create schema airflow; Airflow Meta Database sql_alchemy_conn = " postgresql+psycopg2://airflowuser!:##airflowuser_94RMJM@c...