Closed garylavayou closed 1 year ago
hi @garylavayou ,
The error shows that it cannot find a class in Ray. Can you please check if ray jar is presented under where-you-installed-ray/jars
? You can check where you installed ray in python: import ray; ray.__file__
hi @garylavayou , The error shows that it cannot find a class in Ray. Can you please check if ray jar is presented under
where-you-installed-ray/jars
? You can check where you installed ray in python:import ray; ray.__file__
@kira-lin There are no jars
in the ray package. Did you mean jars
in raydp
? I found some jars
in the raydp
package.
-rw-r--r-- 1 gary gary 276K Mar 26 22:47 raydp-1.5.0.jar
-rw-r--r-- 1 gary gary 16K Mar 26 22:47 raydp-shims-common-1.5.0.jar
-rw-r--r-- 1 gary gary 14K Mar 26 22:47 raydp-shims-spark321-1.5.0.jar
-rw-r--r-- 1 gary gary 15K Mar 26 22:47 raydp-shims-spark330-1.5.0.jar
@garylavayou , I mean the ray package.
There are no jars in the ray package.
Then that's the problem. Your installed ray package did not build the java part. How did you install it? I think it should contain the jar if you install it via pip. You can try pip install ray[default]
. If it did not work, it might be due to your WSL environment. In that case, maybe you can try to build it from source
@garylavayou , I mean the ray package.
There are no jars in the ray package.
Then that's the problem. Your installed ray package did not build the java part. How did you install it? I think it should contain the jar if you install it via pip. You can try
pip install ray[default]
. If it did not work, it might be due to your WSL environment. In that case, maybe you can try to build it from source
@kira-lin I installed ray in a Conda virtual environment with the following packages.
- polars
- pandas
- pandarallel
- dask
- ray-default==2.2
- pylint
- autopep8
- ipykernel
- rich
- tqdm
- watchdog
I see. Can you please try uninstall this and install it via pip, and see if the jar is presented?
I have similar error. I use both pip install on conda env or pip in the bin system but both of them can not build the java part. Is there any solution ?
Also experiencing this issue however ray_dist.jar
exists in the jars
directory. Running Ray 2.3.0 and raydp=1.5.0
I see. Can you please try uninstall this and install it via pip, and see if the jar is presented?
@kira-lin the problem is solved. I create the environment without ray
and raydp
(python=3.10
), and then use pip to install ray[default]=2.2.0
and raydp
.
the conda version is maintained by community, installing via pip is officially recommended.
Also experiencing this issue however
ray_dist.jar
exists in thejars
directory. Running Ray 2.3.0 and raydp=1.5.0
@peterghaddad be sure to install compatible version of related packages.
From release notes of raydp 1.5: Support Ray 2.1.0 - 2.2.0 Support Spark 3.1 - 3.3
Also experiencing this issue however ray_dist.jar exists in the jars directory. Running Ray 2.3.0 and raydp=1.5.0
Are you experiencing the NPE exception? In that case please either use ray 2.2.0 or raydp-nightly, thanks
Problem Description
I am trying to create a spark cluster with
raydp
, with the following code (from Ray's documentation):but failed with the direct error (for more details, see related logs).
Configurations
System: WSL2 Ubuntu 22.04.2 JDK version:
openjdk8u362-b09
(eclipse temurin) oropenjdk 11.0.18
(Ubuntu package). Python version:3.10.10
Ray version:2.2.0
raydp version:1.5.0
pyspark version:3.3.1
py4j version:0.10.9.5
Related Logs