Hello,
I want to experiment with the java bindings for ray. I used ray version 1.2.0 (installed via pip) and the same for the java version (ray-api and ray-runtime both at 1.2.0, using Gradle). The code consists only of the “Ray.init()” call. However, I get the exception
Error: Invalid value for ‘–system-config’: {put_small_object_in_memory_store:false}
and the program crashes. My understanding from the documentation (Configuring Ray — Ray 3.0.0.dev0) is that no additional configuration is required for a single node cluster. Am I doing anything wrong?
Full output:
Exception in thread “main” java.lang.RuntimeException: Failed to initialize Ray runtime.
at io.ray.api.Ray.init(Ray.java:27)
at main.Main.main(Main.java:12)
2021-02-23 18:14:59,133 ERROR DefaultRayRuntimeFactory [main]: Failed to initialize ray runtime, with config {“ray”:{“address”:null,“head-args”:,“job”:{“code-search-path”:“”,“id”:“”,“jvm-options”:,“num-java-workers-per-process”:1,“worker-env”:{}},“logging”:{“dir”:“”,“level”:“INFO”,“max-backup-files”:10,“max-file-size”:“500MB”,“pattern”:“%d{yyyy-MM-dd HH:mm:ss,SSS} %p %c{1} [%t]: %m%n”},“object-store”:{“socket-name”:null},“raylet”:{“config”:{“put_small_object_in_memory_store”:false},“node-manager-port”:0,“socket-name”:null},“redis”:{“password”:“5241590000000000”},“run-mode”:“CLUSTER”,“session-dir”:null}}
Caused by: java.lang.RuntimeException: Failed to initialize ray runtime
java.lang.RuntimeException: Failed to start Ray runtime.
at io.ray.runtime.DefaultRayRuntimeFactory.createRayRuntime(DefaultRayRuntimeFactory.java:43)
at io.ray.api.Ray.init(Ray.java:38)
at io.ray.api.Ray.init(Ray.java:25)
at io.ray.runtime.runner.RunManager.startRayHead(RunManager.java:41)
… 1 more
Caused by: java.lang.RuntimeException: Failed to initialize ray runtimeat io.ray.runtime.RayNativeRuntime.start(RayNativeRuntime.java:75)
Caused by: java.lang.RuntimeException: Failed to start Ray runtime.
Caused by: java.lang.RuntimeException: Failed to start Ray runtime.at io.ray.runtime.DefaultRayRuntimeFactory.createRayRuntime(DefaultRayRuntimeFactory.java:39)
at io.ray.runtime.runner.RunManager.startRayHead(RunManager.java:41)
at io.ray.api.Ray.init(Ray.java:38)
at io.ray.runtime.RayNativeRuntime.start(RayNativeRuntime.java:75)
at io.ray.api.Ray.init(Ray.java:25)
at main.Main.main(Main.java:12)
at io.ray.runtime.DefaultRayRuntimeFactory.createRayRuntime(DefaultRayRuntimeFactory.java:39)
… 3 more
Caused by: java.lang.RuntimeException: The exit value of the process is 2. Command: ray start --head --redis-password 5241590000000000 --system-config={“put_small_object_in_memory_store”:false}
Caused by: java.lang.RuntimeException: The exit value of the process is 2. Command: ray start --head --redis-password 5241590000000000 --system-config={“put_small_object_in_memory_store”:false}
output:
output:
Usage: ray start [OPTIONS]
Usage: ray start [OPTIONS]
Try ‘ray start --help’ for help.
Try ‘ray start --help’ for help.Error: Invalid value for ‘–system-config’: {put_small_object_in_memory_store:false}
Caused by: java.lang.RuntimeException: The exit value of the process is 2. Command: ray start --head --redis-password 5241590000000000 --system-config={“put_small_object_in_memory_store”:false}
Error: Invalid value for ‘–system-config’: {put_small_object_in_memory_store:false}
at io.ray.runtime.runner.RunManager.runCommand(RunManager.java:117)at io.ray.runtime.runner.RunManager.startRayHead(RunManager.java:39)
… 5 more
at io.ray.runtime.runner.RunManager.runCommand(RunManager.java:117)
at io.ray.runtime.runner.RunManager.startRayHead(RunManager.java:39)
… 5 more
Error: Invalid value for ‘–system-config’: {put_small_object_in_memory_store:false}Task :Main.main() FAILED
Execution failed for task ‘:Main.main()’.