tree: 105c9e71079f0e401b08795260328a84e7d769d7 [path history] [tgz]
  1. src/
  2. README.md
examples/distributedshell/README.md

This directory contains the example that distributes a shell command to the cluster. This README explain how to quick-start this example.

This example also aims to explore better API for user to implement a new application, including AppMaster and Task.

In order to run the example:

  1. Start a gearpump cluster, including Master and Workers.

  2. Start the AppMaster:

target/pack/bin/gear app -jar target/pack/examples/gearpump-experiments-distributedshell_$VERSION.jar org.apache.gearpump.examples.distributedshell.DistributedShell
  1. Submit the shell command:
target/pack/bin/gear app -verbose true -jar target/pack/examples/gearpump-experiments-distributedshell_$VERSION.jar org.apache.gearpump.examples.distributedshell.DistributedShellClient -appid $APPID -command "ls /"