Repository: mahout Updated Branches: refs/heads/master daad3a4ce -> 37b82124f
NOJIRA: Adding check for parameter in examples/bin/run-rf.sh. Project: http://git-wip-us.apache.org/repos/asf/mahout/repo Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/37b82124 Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/37b82124 Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/37b82124 Branch: refs/heads/master Commit: 37b82124faf98dda5ef9f350f64477570a3bc804 Parents: daad3a4 Author: Andrew Musselman <[email protected]> Authored: Tue Apr 7 19:31:24 2015 -0700 Committer: Andrew Musselman <[email protected]> Committed: Tue Apr 7 19:31:24 2015 -0700 ---------------------------------------------------------------------- examples/bin/run-rf.sh | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mahout/blob/37b82124/examples/bin/run-rf.sh ---------------------------------------------------------------------- diff --git a/examples/bin/run-rf.sh b/examples/bin/run-rf.sh index ac4c734..e52a3b9 100755 --- a/examples/bin/run-rf.sh +++ b/examples/bin/run-rf.sh @@ -25,6 +25,14 @@ # To run: change into the mahout directory and type: # ./examples/bin/run-rf.sh <num-rows> + +if [ $# -ne 1 ] +then + echo -e "\nThis script takes one parameter, the number of rows of random data to generate.\n" + echo -e "Syntax: $0 <number-of-rows-of-sample-data> \n" + exit -1 +fi + WORK_DIR=/tmp/mahout-work-${USER} INPUT="${WORK_DIR}/input" mkdir -p $INPUT
