Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joblib yarn test not working #10

Open
rodfloripa opened this issue Mar 10, 2020 · 1 comment
Open

Joblib yarn test not working #10

rodfloripa opened this issue Mar 10, 2020 · 1 comment

Comments

@rodfloripa
Copy link

I tried to run the joblib_yarn_parallel.py file and got an error(https://github.com/joblib/joblib-hadoop/blob/master/examples/joblib_yarn_parallel.py):

(/tmp/joblib_yarn_conda_env) [opc@brora1vudap003 joblib-hadoop]$ python test
Traceback (most recent call last):
File "test", line 13, in
delayed(sqrt)(i**2) for i in range(10)))
File "/tmp/joblib_yarn_conda_env/lib/python3.5/site-packages/joblib/parallel.py", line 953, in call
n_jobs = self._initialize_backend()
File "/tmp/joblib_yarn_conda_env/lib/python3.5/site-packages/joblib/parallel.py", line 714, in _initialize_backend
**self._backend_args)
File "/home/opc/rodney/joblib-hadoop/joblibhadoop/yarn/backend.py", line 37, in configure
packages=self.packages, clear_env=self.clear_env)
File "/home/opc/rodney/joblib-hadoop/joblibhadoop/yarn/pool.py", line 73, in init
env='{}.zip'.format(os.path.join(TEMP_DIR, env)))
TypeError: start() got an unexpected keyword argument 'env'

When I tried to use joblib locally it worked fine:

from joblib import Parallel, delayed
from math import sqrt
Parallel(n_jobs=1)(delayed(sqrt)(i**2) for i in range(10))
[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]

@almeidajeff
Copy link

I have the same problem using Anaconda3 on CDP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants