airflow 2.2.4 +postgresql 10.20+Python 3.6.8+Redis 6.26+celeryExecutor

机器 worker 192.168.24.4

机器webserver 192.168.24.3  

[airflow@webserver ~]$ airflow version
2.2.4

[root@worker ~]# psql -V
psql (PostgreSQL) 10.20

[root@worker ~]# python -V
Python 3.6.8

[root@worker ~]# redis-server -v 
Redis server v=6.2.6 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=2d316d7632285395

vi .bash_profile 设置环境变量

export PATH
export AIRFLOW_HOME=~/airflow
export AIRFLOW__CORE__DEFAULT_TIMEZONE=Asia/Shanghai
export AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:[email protected]/airflow
export AIRFLOW__WEBSERVER__DEFAULT_UI_TIMEZONE=Asia/Shanghai
export AIRFLOW__CORE__EXECUTOR=CeleryExecutor
export AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://airflow:[email protected]/airflow
export AIRFLOW__CELERY__BROKER_URL=redis://192.168.24.4:6379/0

flower监控

airflow 2.2.4 +postgresql 10.20+Python 3.6.8+Redis 6.26+celeryExecutor_第1张图片

webserver监控airflow 2.2.4 +postgresql 10.20+Python 3.6.8+Redis 6.26+celeryExecutor_第2张图片

配置连接 airflow 2.2.4 +postgresql 10.20+Python 3.6.8+Redis 6.26+celeryExecutor_第3张图片

 

 

你可能感兴趣的:(postgresql,数据库,database)