Repository: mahout Updated Branches: refs/heads/master ff51ab448 -> 23267a0be
MAHOUT-1773: Fix cluster-syntheticcontrol.sh for HDFS synthax closes apache/mahout#157 Project: http://git-wip-us.apache.org/repos/asf/mahout/repo Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/23267a0b Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/23267a0b Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/23267a0b Branch: refs/heads/master Commit: 23267a0bef064f3351fd879274724bcb02333c4a Parents: ff51ab4 Author: Andrew Musselman <[email protected]> Authored: Thu Mar 17 18:00:01 2016 -0700 Committer: Andrew Musselman <[email protected]> Committed: Thu Mar 17 18:00:01 2016 -0700 ---------------------------------------------------------------------- examples/bin/cluster-syntheticcontrol.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mahout/blob/23267a0b/examples/bin/cluster-syntheticcontrol.sh ---------------------------------------------------------------------- diff --git a/examples/bin/cluster-syntheticcontrol.sh b/examples/bin/cluster-syntheticcontrol.sh index eab62be..39f5784 100755 --- a/examples/bin/cluster-syntheticcontrol.sh +++ b/examples/bin/cluster-syntheticcontrol.sh @@ -66,13 +66,13 @@ if [ ! -f ${WORK_DIR}/synthetic_control.data ]; then fi if [ "$HADOOP_HOME" != "" ] && [ "$MAHOUT_LOCAL" == "" ]; then echo "Checking the health of DFS..." - $DFS -ls + $DFS -ls / if [ $? -eq 0 ];then echo "DFS is healthy... " echo "Uploading Synthetic control data to HDFS" - $DFSRM testdata - $DFS -mkdir testdata - $DFS -put ${WORK_DIR}/synthetic_control.data testdata + $DFSRM ${WORK_DIR}/testdata + $DFS -mkdir ${WORK_DIR}/testdata + $DFS -put ${WORK_DIR}/synthetic_control.data ${WORK_DIR}/testdata echo "Successfully Uploaded Synthetic control data to HDFS " ../../bin/mahout org.apache.mahout.clustering.syntheticcontrol."${clustertype}".Job
