You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by ss...@apache.org on 2014/05/24 18:08:59 UTC

git commit: MAHOUT-1561 cluster-syntheticcontrol.sh not running locally with MAHOUT_LOCAL=true

Repository: mahout
Updated Branches:
  refs/heads/master b59276e92 -> aa0f0f461


MAHOUT-1561 cluster-syntheticcontrol.sh not running locally with MAHOUT_LOCAL=true


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

Branch: refs/heads/master
Commit: aa0f0f461f6b9ca0186a7e054ec61eee76f396f7
Parents: b59276e
Author: ssc <ss...@apache.org>
Authored: Sat May 24 18:08:35 2014 +0200
Committer: ssc <ss...@apache.org>
Committed: Sat May 24 18:08:35 2014 +0200

----------------------------------------------------------------------
 CHANGELOG                                | 2 ++
 examples/bin/cluster-syntheticcontrol.sh | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mahout/blob/aa0f0f46/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index 43d1256..c284bc0 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,8 @@ Mahout Change Log
 
 Release 1.0 - unreleased
 
+  MAHOUT-1561: cluster-syntheticcontrol.sh not running locally with MAHOUT_LOCAL=true (Andrew Palumbo via ssc)
+
   MAHOUT-1558: Clean up classify-wiki.sh and add in a binary classification problem (Andrew Palumbo via ssc)
 
   MAHOUT-1560: Last batch is not filled correctly in MultithreadedBatchItemSimilarities (Jarosław Bojar)

http://git-wip-us.apache.org/repos/asf/mahout/blob/aa0f0f46/examples/bin/cluster-syntheticcontrol.sh
----------------------------------------------------------------------
diff --git a/examples/bin/cluster-syntheticcontrol.sh b/examples/bin/cluster-syntheticcontrol.sh
index 8424f17..550964e 100755
--- a/examples/bin/cluster-syntheticcontrol.sh
+++ b/examples/bin/cluster-syntheticcontrol.sh
@@ -63,7 +63,7 @@ if [ ! -f ${WORK_DIR}/synthetic_control.data ]; then
   echo "Couldn't download synthetic control"
   exit 1
 fi
-if [ "$HADOOP_HOME" != "" ]; then
+if [ "$HADOOP_HOME" != "" ] && [ "$MAHOUT_LOCAL" == "" ]; then
   echo "Checking the health of DFS..."
   $HADOOP_HOME/bin/hadoop fs -ls 
   if [ $? -eq 0 ];then