为什么Airflow Worker尝试连接到本地MYSQL服务器而不是从airflow配置中获取

时间:2018-10-29 11:36:39

标签: airflow

当我启动带有某些队列的气流工作程序时,它会引发以下错误。

我已经在airflow配置中配置了数据库详细信息。但不确定为什么要尝试连接到本地mysql服务器

[2018-10-29 18:59:32,012: ERROR/MainProcess] Pool callback raised exception: OperationalError('(_mysql_exceptions.OperationalError) (2002, "Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)")',)
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python2.7/site-packages/billiard/pool.py", line 1747, in safe_apply_callback
    fun(*args, **kwargs)
    return dialect.connect(*cargs, **cparams)
  File "/home/airflow/.local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 393, in connect
    return self.dbapi.connect(*cargs, **cparams)
  File "/usr/lib64/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (_mysql_exceptions.OperationalError) (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)")

0 个答案:

没有答案