The current method for starting a conda environment local to each node does not work correctly:
from dask_yarn import YarnCluster
# Use a conda environment at /path/to/my/conda/env
cluster = YarnCluster(environment='conda:///path/to/my/conda/env')
It seems the environment does not activate, as discussed here.
I am running dask-yarn 0.8.1.
A possible workaround (I have been using successfully) is to replace line 126 in dask_yarn/core.py:
Hi,
The current method for starting a conda environment local to each node does not work correctly:
It seems the environment does not activate, as discussed here.
I am running dask-yarn 0.8.1.
A possible workaround (I have been using successfully) is to replace line 126 in dask_yarn/core.py:
with the following:
for environments stored in a standard location such as
/opt/anaconda3/envs/my_conda_env
.The cluster can then be then started with:
Please let me know if you would like me to submit a PR with the above.
Cheers, Roger