Skip to content
Advertisement

Dask distributed.scheduler – ERROR – Couldn’t gather keys

JavaScript

I created a dask cluster using two local machines using

JavaScript

I am trying to find best parameters using dask gridsearchcv. I am facing the following error.

JavaScript

I hope someone helps in solving this issue. Thanks in advance.

Advertisement

Answer

I also meet the same issue, and I find it’s likely to be caused by firewall.

Suppose we have two machines, 191.168.1.1 for scheduler and 191.168.1.2 for worker.

When we start scheduler, we may get following info:

JavaScript

so for scheduler, we should confirm that port 8786 and port 8786 can be accessed.

Simlilarly, we can check worker’s info:

JavaScript

nanny port is 39042, worker port is 39040 and dashboard port is 39041.

set these ports open for both 191.168.1.1 and 191.168.1.2:

JavaScript

and task can run sucessfully.

Finally, Dask will choose ports for worker randomly, we can also start worker with customized ports:

JavaScript

More parameters can be referred here.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement