Skip to content

Latest commit

 

History

History

tutorial

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Ray Java Tutorial

Exercises

Each file java/example/src/main/java/org/ray/exercise/Exercise*.java is a separate exercise. To run a exercise case, set the RAY_CONFIG env variable and run the following command in ray/java/ directory.

java -Djava.library.path=../build/src/plasma/:../build/src/local_scheduler/ -classpath "tutorial/target/ray-tutorial-1.0.jar:tutorial/lib/*" org.ray.exercise.Exercise01

Exercise 1: Define a remote function, and execute multiple remote functions in parallel.

Exercise 2: Execute remote functions in parallel with some dependencies.

Exercise 3: Call remote functions from within remote functions.

Exercise 4: Use Ray.wait to ignore stragglers.

Exercise 5: Actor Support of create Actor and call Actor method.