在ubuntu 16.04和18.04中都安装了气流之后,我遇到了问题。安装气流之后,Web服务器将正常启动,但调度程序未执行Dag。
当我看到气流调度程序日志时,他们被卡住了。
[2019-12-30 10:34:40,021] {settings.py:213} INFO - settings.configure_orm(): Using pool settings. pool_size=5, max_overflow=10, pool_recycle=1800, pid=1362
[2019-12-30 10:34:40,644] {__init__.py:51} INFO - Using executor LocalExecutor
____________ _____________
____ |__( )_________ __/__ /________ __
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / /
___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ /
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/
[2019-12-30 10:34:42,956] {scheduler_job.py:1288} INFO - Starting the scheduler
[2019-12-30 10:34:42,956] {scheduler_job.py:1296} INFO - Running execute loop for -1 seconds
[2019-12-30 10:34:42,957] {scheduler_job.py:1297} INFO - Processing each file at most -1 times
[2019-12-30 10:34:42,957] {scheduler_job.py:1300} INFO - Searching for files in /home/user/airflow/dags
[2019-12-30 10:34:42,959] {scheduler_job.py:1302} INFO - There are 1 files in /home/user/airflow/dags
[2019-12-30 10:34:43,107] {scheduler_job.py:1349} INFO - Resetting orphaned tasks for active dag runs
[2019-12-30 10:34:43,144] {dag_processing.py:543} INFO - Launched DagFileProcessorManager with pid: 1476
[2019-12-30 10:34:43,175] {settings.py:54} INFO - Configured default timezone <Timezone [UTC]>
[2019-12-30 10:34:43,184] {settings.py:213} INFO - settings.configure_orm(): Using pool settings. pool_size=5, max_overflow=10, pool_recycle=1800, pid=1476
系统上的python版本是Python 3.6.9。我在MySQL中使用LocalExecutor。