ERROR common.AbstractJob: Unexpected o while proce
4273 ワード
mahout in actionのkmeanインスタンスをテストする場合は、コマンドを入力します.
bin/mahout kmeans -i reuters-vectors/tfidf-vectors/\-c reuters-initial-clusters\-o reuters-kmeans-clusters\-dm org.apache.mahout.common.distance.SquaredEuclideanDistanceMeasure\-cd 1.0 -k 20 -x 20 -cl
ぜんめんの誤りを告げる
bin/mahout kmeans -i reuters-vectors/tfidf-vectors/\-c reuters-initial-clusters\-o reuters-kmeans-clusters\-dm org.apache.mahout.common.distance.SquaredEuclideanDistanceMeasure\-cd 1.0 -k 20 -x 20 -cl
ぜんめんの誤りを告げる
mahout kmeans -i tfidf-vectors/ -c reuters-initial-clusters o reuters-kmeans-clusters dm org.apache.mahout.common.distance.SquaredEuclideanDistanceMeasure cd 1.0 -k 20 -x 20 -cl
Running on hadoop, using HADOOP_HOME=/usr/local/hadoop
HADOOP_CONF_DIR=/usr/local/hadoop/conf
14/01/23 12:43:34 ERROR common.AbstractJob: Unexpected o while processing Job-Specific Options:
usage: <command> [Generic Options] [Job-Specific Options]
Generic Options:
-archives <paths> comma separated archives to be unarchived
on the compute machines.
-conf <configuration file> specify an application configuration file
-D <property=value> use value for given property
-files <paths> comma separated files to be copied to the
map reduce cluster
-fs <local|namenode:port> specify a namenode
-jt <local|jobtracker:port> specify a job tracker
-libjars <paths> comma separated jar files to include in the
classpath.
Job-Specific Options:
--input (-i) input Path to job input directory.
--output (-o) output The directory pathname for
output.
--distanceMeasure (-dm) distanceMeasure The classname of the
DistanceMeasure. Default is
SquaredEuclidean
--clusters (-c) clusters The input centroids, as Vectors.
Must be a SequenceFile of
Writable, Cluster/Canopy. If k
is also specified, then a random
set of vectors will be selected
and written out to this path
first
--numClusters (-k) k The k in k-Means. If specified,
then a random selection of k
Vectors will be chosen as the
Centroid and written to the
clusters input path.
--convergenceDelta (-cd) convergenceDelta The convergence delta value.
Default is 0.5
--maxIter (-x) maxIter The maximum number of
iterations.
--overwrite (-ow) If present, overwrite the output
directory before running job
--clustering (-cl) If present, run clustering after
the iterations have taken place
--method (-xm) method The execution method to use:
sequential or mapreduce. Default
is mapreduce
--help (-h) Print out help
--tempDir tempDir Intermediate output directory
--startPhase startPhase First phase to run
--endPhase endPhase Last phase to run
14/01/23 12:43:35 INFO driver.MahoutDriver: Program took 149 ms
解決方法:入力コマンドパラメータoの前に-が付いていない、mahoutは後のパラメータを解析できないので、報告されたエラー.