Skip to content
This repository has been archived by the owner on Aug 13, 2018. It is now read-only.

dask/old-dask-yarn

Repository files navigation

Please find this functionality in https://github.com/dask/knit/blob/master/knit/dask_yarn.py

Build Status Coverage Status

Example

>>> from dask_yarn import YARNCluster
>>> cluster = YARNCluster()

>>> from dask.distributed import Client
>>> client = Client(cluster)
>>> cluster.start(2, cpus=1, memory=500)

>>> future = client.submit(lambda x: x + 1, 10)
>>> future.result()
11