mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smar...@apache.org
Subject mahout git commit: MAHOUT-1793: Declare WORK_DIR earlier in example script to fix putput error, this closes apache/mahout#177
Date Tue, 17 Nov 2015 02:53:27 GMT
Repository: mahout
Updated Branches:
  refs/heads/master 67c78209b -> 99d8ce24b


MAHOUT-1793: Declare WORK_DIR earlier in example script to fix putput error, this closes apache/mahout#177


Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/99d8ce24
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/99d8ce24
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/99d8ce24

Branch: refs/heads/master
Commit: 99d8ce24b3ae3e4ea413bee2e09da72ff3faf723
Parents: 67c7820
Author: smarthi <smarthi@apache.org>
Authored: Mon Nov 16 21:52:39 2015 -0500
Committer: smarthi <smarthi@apache.org>
Committed: Mon Nov 16 21:52:39 2015 -0500

----------------------------------------------------------------------
 examples/bin/cluster-reuters.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mahout/blob/99d8ce24/examples/bin/cluster-reuters.sh
----------------------------------------------------------------------
diff --git a/examples/bin/cluster-reuters.sh b/examples/bin/cluster-reuters.sh
index 1c1a17d..d53aa00 100755
--- a/examples/bin/cluster-reuters.sh
+++ b/examples/bin/cluster-reuters.sh
@@ -43,6 +43,8 @@ if [ ! -e $MAHOUT ]; then
   exit 1
 fi
 
+WORK_DIR=/tmp/mahout-work-${USER}
+
 algorithm=( kmeans fuzzykmeans lda streamingkmeans clean)
 if [ -n "$1" ]; then
   choice=$1
@@ -59,8 +61,6 @@ fi
 echo "ok. You chose $choice and we'll use ${algorithm[$choice-1]} Clustering"
 clustertype=${algorithm[$choice-1]}
 
-WORK_DIR=/tmp/mahout-work-${USER}
-
 if [ "x$clustertype" == "xclean" ]; then
   rm -rf $WORK_DIR
   $DFSRM $WORK_DIR


Mime
View raw message