Skip to content

Commit

Permalink
Fixes #906 - Create 'fluo get-jars' command (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewalch committed Aug 11, 2017
1 parent 40a501d commit db0bdad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/distribution/src/main/scripts/fluo
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ function print_usage {
echo -e "Possible commands:\n"
echo " init <app> <appProps> {<arg>} Initializes Fluo application for <app> using <appProps>. Run with -h to see additional args."
echo " classpath Prints the classpath setup in fluo-env.sh"
echo " list Lists all Fluo applications in Fluo instance"
echo " config <app> Prints application configuration stored in Zookeeper for <app>"
echo " get-jars <app> <dir> Copies <app> jars from DFS to local <dir>"
echo " list Lists all Fluo applications in Fluo instance"
echo " scan <app> Prints snapshot of data in Fluo <app>"
echo " stop <app> Stops Fluo application processes on this machine for <app>"
echo " oracle <app> Starts Fluo Oracle process for <app>"
Expand Down Expand Up @@ -153,6 +154,14 @@ config)
check_conn_props
java org.apache.fluo.command.FluoConfig "$FLUO_CONN_PROPS" "$2"
;;
get-jars)
verify_app "$2"
if [ ! -d "$3" ]; then
echo "Directory '$3' does not exist"
exit 1
fi
java org.apache.fluo.command.FluoGetJars "$FLUO_CONN_PROPS" "$2" "$3"
;;
init)
if [ -f "$FLUO_CONN_PROPS" ]; then
check_conn_props
Expand Down

0 comments on commit db0bdad

Please sign in to comment.