As per the documentation, https://docs.ray.io/en/master/cross-language.html
python calling java usecase, first step to set the Code Search Path in your driver,
ray.init(job_config=ray.job_config.JobConfig(code_search_path="/path/to/code"))
This works perfectly fine when we run locally as a single node, but when we want to use the existing kubernetes cluster and want to attach to the existing address, something like below:
ray.client().connect(‘172.17.4.0:6359’)
there is no way to set this job_config or code_search_path, how can cross language programming using ray be acheived in cluster existing address?
Another way I have tried using below code:
job_config=ray.job_config.JobConfig(code_search_path=sys.path)
ray.util.connect(f"{head_service_ip}:{client_port}", job_config=job_config)
but didn’t work out, it fails to recognize the java class.
However, the same works fine when using single node locally.