Dask分布式:计算后出现一些错误

时间:2017-08-21 15:41:40

标签: python python-3.x tornado dask dask-distributed

我在Linux CentOS 7上运行Dask Distributed,安装了Python 3.6.2。我的计算似乎变得很好(我仍在改进我的代码,但我能够得到一些结果),但我不断得到一些显然链接到龙卷风模块的python错误。我只启动一个节点独立的Dask分布式集群。

以下是最常见的示例:

Exception in thread Client loop:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.6/site-packages/tornado/ioloop.py", line 832, in start
    self._run_callback(self._callbacks.popleft())
AttributeError: 'NoneType' object has no attribute 'popleft'

这是另一个:

tornado.application - ERROR - Exception in callback <bound method WorkStealing.balance of <distributed.stealing.WorkStealing object at 0x7f752ce6d6a0>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/tornado/ioloop.py", line 1026, in _run
    return self.callback()
  File "/usr/local/lib/python3.6/site-packages/distributed/stealing.py", line 248, in balance
    sat = s.rprocessing[key]
KeyError: 'read-block-9024000000-e3fefd2110094168cc0505db69b326e0'

你知道为什么吗?我应该关闭某些连接还是停止独立群集?

1 个答案:

答案 0 :(得分:0)

是的,如果您在退出过程之前没有关闭Tornado IOLoop,那么它可能会以令人不快的方式死亡。幸运的是,这不应该影响你的应用程序,除非看起来不愉快。

您可能会提交有关此问题的错误报告,这仍然是我们应该解决的问题。