【异常】lockfile.AlreadyLocked: ~/airflow/airflow-scheduler.pid is already locked

て烟熏妆下的殇ゞ 提交于 2020-11-29 11:50:18

1 完整异常信息

File "/usr/bin/airflow", line 32, in <module>
    args.func(args)
  File "/usr/lib/python2.7/site-packages/airflow/utils/cli.py", line 74, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/airflow/bin/cli.py", line 1000, in scheduler
    with ctx:
  File "/usr/lib/python2.7/site-packages/daemon/daemon.py", line 397, in __enter__
    self.open()
  File "/usr/lib/python2.7/site-packages/daemon/daemon.py", line 389, in open
    self.pidfile.__enter__()
  File "/usr/lib/python2.7/site-packages/lockfile/__init__.py", line 197, in __enter__
    self.acquire()
  File "/usr/lib/python2.7/site-packages/daemon/pidfile.py", line 60, in acquire
    super(TimeoutPIDLockFile, self).acquire(timeout, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/lockfile/pidlockfile.py", line 88, in acquire
    self.path)
lockfile.AlreadyLocked: /home/cloudera-scm/airflow/airflow-scheduler.pid is already locked

  

问题

    Airflow调度服务无法启动

解决办法

     删除pid文件,重启就ok了。

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!