Hey everyone, I have been trying to connect to a ray cluster I setup on Kubernetes (using the relevant instructions in the docs) from a Jupyter notebook. I was directed to the Ray Client feature still in beta), which proved to be the perfect thing for what I needed.
I had to run the command specified in the docs, make sure that the 50051
port was exposed and then kubectl port-forward
ed to my local machine. There I used the ray.util.connect
function to connect to the ray server.
I initially ran into some issues that I would like to share. I encountered the following error:
The connection to the client seemed to work fine but actually trying to run something failed.
Turns out the issue was that both the python and ray versions need to be the same between the client and server (python 3.7.7 and ray 2.0.0.dev0 in this case). Just wanted to let everyone know in case someone uses this feature! Is this expected behaviour? Do people know when this feature might come out of beta?
Thanks a lot!
Andy