Skip to content

Commit db0bdad

Browse files
authored
Fixes #906 - Create 'fluo get-jars' command (#907)
1 parent 40a501d commit db0bdad

File tree

1 file changed

+10
-1
lines changed
  • modules/distribution/src/main/scripts

1 file changed

+10
-1
lines changed

modules/distribution/src/main/scripts/fluo

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ function print_usage {
6464
echo -e "Possible commands:\n"
6565
echo " init <app> <appProps> {<arg>} Initializes Fluo application for <app> using <appProps>. Run with -h to see additional args."
6666
echo " classpath Prints the classpath setup in fluo-env.sh"
67-
echo " list Lists all Fluo applications in Fluo instance"
6867
echo " config <app> Prints application configuration stored in Zookeeper for <app>"
68+
echo " get-jars <app> <dir> Copies <app> jars from DFS to local <dir>"
69+
echo " list Lists all Fluo applications in Fluo instance"
6970
echo " scan <app> Prints snapshot of data in Fluo <app>"
7071
echo " stop <app> Stops Fluo application processes on this machine for <app>"
7172
echo " oracle <app> Starts Fluo Oracle process for <app>"
@@ -153,6 +154,14 @@ config)
153154
check_conn_props
154155
java org.apache.fluo.command.FluoConfig "$FLUO_CONN_PROPS" "$2"
155156
;;
157+
get-jars)
158+
verify_app "$2"
159+
if [ ! -d "$3" ]; then
160+
echo "Directory '$3' does not exist"
161+
exit 1
162+
fi
163+
java org.apache.fluo.command.FluoGetJars "$FLUO_CONN_PROPS" "$2" "$3"
164+
;;
156165
init)
157166
if [ -f "$FLUO_CONN_PROPS" ]; then
158167
check_conn_props

0 commit comments

Comments
 (0)