conda create -n airflow-tutorials python=3.7 -y
conda activate airflow_tutorials
pip install "apache-airflow[sqlite]"
export AIRFLOW_HOME="$(pwd)"
airflow initdb
Config file : vim /airflow/airflow.cfg
Change dags_folder : dags_folder = /name/airflow_practice/dags
sqlite3 //tmp/sqlite_default.db
CREATE TABLE KEYWORD(
ID INTEGER PRIMARY KEY AUTOINCREMENT,
Forum VARCHAR(50),
KeywordList TEXT,
FinishTimestamp DATETIME DEFAULT CURRENT_TIMESTAMP
);
.quit
nohup airflow scheduler &
airflow webserver -p 8080
https://drive.google.com/file/d/1-WUPfKM-rZ5l1HHKwO4tiHYj-o9NF4Dv/view?usp=sharing