Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Prerequisites

You have compiled REEF locally and set the JAVA_HOME environment variable.

Running your first REEF program: Hello, REEF! (Java)

...

Code Block
languagebash
titleRUN
> java -cp lang/java/reef-examples/target/reef-examples-{$REEF_VERSION}-incubating-SNAPSHOT-shaded.jar org.apache.reef.examples.hello.HelloREEF

...

Code Block
languagebash
titleOUTPUT
Powered by
     ___________  ______  ______  _______
    /  ______  / /  ___/ /  ___/ /  ____/
   /     _____/ /  /__  /  /__  /  /___
  /  /\  \     /  ___/ /  ___/ /  ____/
 /  /  \  \   /  /__  /  /__  /  /
/__/    \__\ /_____/ /_____/ /__/

...
INFO: REEF Version: 0.14.0-incubating-SNAPSHOT
...
INFO: The Job HelloREEF is running.
...
INFO: The Job HelloREEF is done.
...
INFO: REEF job completed: COMPLETED

...

Where's

...

the

...

output?

The local runtime simulates a cluster of machines: It executes each Evaluator in a separate process on your machine. Hence, the Evaluator that printed "Hello, REEF" is not executed in the same process as the program you launched above. So, how do you get to the output of the Evaluator? The local runtime creates one folder per job it executes in REEF_LOCAL_RUNTIME:

...