Skip to content
Permalink
Browse files
Fixes #3 Check if application is running before starting (#5)
* Also improved README.md
  • Loading branch information
mikewalch committed Aug 28, 2017
1 parent b58bc38 commit 2e0266de99000e827286a81f2c39576a68de5b39
Showing 2 changed files with 14 additions and 6 deletions.
@@ -34,7 +34,7 @@ See the [related projects page][related] for external projects that may help in

## Set up your Fluo application

Before you can launch a Fluo application in YARN, you should follow Fluo's [install instructions][install]
Before you can launch a Fluo application in YARN, you should follow Fluo's [install] and [application] instructions
to install Fluo and initialize a Fluo application. After your application has been initialized, follow
the insructions below to install the Fluo YARN launcher and run your application in YARN. Avoid using the
`fluo` command to start local oracle and worker processes if you are running in YARN.
@@ -82,21 +82,23 @@ After you obtain a Fluo YARN distribution tarball, follow these steps to install

## Start Fluo application in YARN

Follow the instructions below to start a Fluo application which contain an oracle and multiple workers.
Follow the instructions below to start your application in YARN. If you have not done so already, you should [initialize
your Fluo application][application] before following these instructions.

1. Configure [fluo-yarn-env.sh] and [fluo-yarn.properties] if you have not already.

2. Run the commands below to start your Fluo application in YARN.

fluo-yarn start myapp conf/fluo-yarn.properties

The commands will retrieve your application configuration and observer jars (using your
application name) before starting the application in YARN.
The commands will retrieve your application configuration and observer jars (using your application name) before
starting the application in YARN. The command will output a YARN application ID that can be used to find your
application in the YARN resource manager and view its logs.

## Manage Fluo application in YARN

Except for stopping your application in YARN, the `fluo` script can be used to manage your application using the
`scan` and `wait` commands. See Fluo's [install instruction][install] for more information.
`scan` and `wait` commands. See [Fluo's application instructions][application] for more information.

When you want you stop your Fluo application, use the the YARN resource manager or the
`yarn application -kill <App ID>` to stop the application in YARN.
@@ -105,7 +107,8 @@ When you want you stop your Fluo application, use the the YARN resource manager
[YARN]: http://hadoop.apache.org/
[related]: https://fluo.apache.org/related-projects/
[related]: https://fluo.apache.org/related-projects/
[install]: https://github.com/apache/incubator-fluo/blob/master/docs/install.md
[install]: https://github.com/apache/fluo/blob/master/docs/install.md
[application]: https://github.com/apache/fluo/blob/master/docs/applications.md
[release]: https://fluo.apache.org/download/
[fluo-yarn-env.sh]: distribution/conf/fluo-yarn-env.sh
[fluo-yarn.properties]: distribution/conf/fluo-yarn.properties
@@ -88,6 +88,11 @@ start)
print_usage
exit 1
fi
app_status=$($FLUO_HOME/bin/fluo status $app)
if [[ "$app_status" == "RUNNING" ]]; then
echo "Fluo appplication '$app' is already running!"
exit 1
fi
build_bundled_jar
java org.apache.fluo.yarn.core.FluoYarnLauncher "$FLUO_CONN_PROPS" "$3" "$conf/log4j.properties" "$app" "$app_dir/$bundled_jar"
;;

0 comments on commit 2e0266d

Please sign in to comment.