You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by sm...@apache.org on 2016/03/08 06:16:47 UTC

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

Repository: mahout
Updated Branches:
  refs/heads/flink-binding af015ece7 -> e3935bbad


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/e3935bba
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/e3935bba
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/e3935bba

Branch: refs/heads/flink-binding
Commit: e3935bbad97eeb55cbe9f2cd60b8a7ec969a6c62
Parents: af015ec
Author: smarthi <sm...@apache.org>
Authored: Mon Nov 16 21:52:39 2015 -0500
Committer: smarthi <sm...@apache.org>
Committed: Tue Mar 8 00:15:50 2016 -0500

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


http://git-wip-us.apache.org/repos/asf/mahout/blob/e3935bba/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