BokehWebInterface not working for Dask Distributed

扶醉桌前 提交于 2019-12-12 05:20:54

问题


I have updated my Dask from version 0.14.3 to 0.15.0, and distributed from 1.16.3 to 1.17.0. BokehWebInterface has been removed from this version. The homepage can be loaded http://localhost:8787, but I can't access tasks, status, workers(It tries to reload until all task are finished and then gives can't reach error). Everything used to work on the earlier version.

loop = IOLoop.current()
t = Thread(target=loop.start)
t.setDaemon(True)
t.start()
workers = []
services = {('http', HTTP_PORT): HTTPScheduler, ('bokeh', BOKEH_INTERNAL_PORT): BokehScheduler}
port = 8786
scheduler = Scheduler(loop=loop, services=services)
workers = []
bokeh_web = None
try:
    scheduler.start(port)
    # removed after updating the dask and ditributed
    bokeh_web = BokehWebInterface(http_port=HTTP_PORT, bokeh_port=BOKEH_PORT)
    # start workers
    for resource in resources:
         workers.append(Worker(scheduler.ip, port, **opts).start(0))
finally:
    for worker in workers:
        worker.stop()
    scheduler.stop()
    bokeh_web.close()

回答1:


The problem is fixed with 0.12.6 version of Bokeh. Thanks, @MRocklin for the inputs.



来源:https://stackoverflow.com/questions/44508308/bokehwebinterface-not-working-for-dask-distributed

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