You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by ap...@apache.org on 2015/04/06 07:09:29 UTC
mahout git commit: (NOJIRA) update the classify-20newsgroups script
to exit if a spark option is selected and MAHOUT_LOCAL is set
Repository: mahout
Updated Branches:
refs/heads/master 97a920f72 -> d67a1d034
(NOJIRA) update the classify-20newsgroups script to exit if a spark option is selected and MAHOUT_LOCAL is set
Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/d67a1d03
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/d67a1d03
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/d67a1d03
Branch: refs/heads/master
Commit: d67a1d034fca4b70299c4bbc1ed77e38c7d00841
Parents: 97a920f
Author: Andrew Palumbo <ap...@apache.org>
Authored: Mon Apr 6 01:08:53 2015 -0400
Committer: Andrew Palumbo <ap...@apache.org>
Committed: Mon Apr 6 01:08:53 2015 -0400
----------------------------------------------------------------------
examples/bin/classify-20newsgroups.sh | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mahout/blob/d67a1d03/examples/bin/classify-20newsgroups.sh
----------------------------------------------------------------------
diff --git a/examples/bin/classify-20newsgroups.sh b/examples/bin/classify-20newsgroups.sh
index d116691..bc5aec4 100755
--- a/examples/bin/classify-20newsgroups.sh
+++ b/examples/bin/classify-20newsgroups.sh
@@ -65,6 +65,10 @@ if [ "x$alg" == "xnaivebayes-Spark" -o "x$alg" == "xcnaivebayes-Spark" ]; then
echo "Plese set your MASTER env variable to point to your Spark Master URL. exiting..."
exit 1
fi
+ if [ "$MAHOUT_LOCAL" != "" ] ; then
+ echo "Options 3 and 4 can not run in MAHOUT_LOCAL mode. exiting..."
+ exit 1
+ fi
fi
if [ "x$alg" != "xclean" ]; then