Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Test how to solve the kmean Times error

Shulou Source: shulou.com Published: 2022-05-31 14:02:23 11月17日 Update

This article mainly introduces "how to solve errors in testing kmean Times". In daily operation, I believe many people have doubts about testing how to solve problems in kmean Times. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to solve mistakes in testing kmean Times". Next, please follow the editor to study!

When testing the kmean instance in mahout in action, enter the command:

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

Report a prior error

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-clRunning on hadoop Using HADOOP_HOME=/usr/local/hadoopHADOOP_CONF_DIR=/usr/local/hadoop/conf14/01/23 12:43:34 ERROR common.AbstractJob: Unexpected o while processing Job-Specific Options:usage: [Generic Options] [Job-Specific Options] Generic Options:-archives comma separated archives to be unarchived on the compute machines. -conf specify an application configuration file-D use value for given property-files comma separated files to be copied to the map reduce cluster-fs specify a namenode-jt specify a job tracker-libjars 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 12:43:35 on 14-01-23 INFO driver.MahoutDriver: Program took 149ms

Solution: input command parameter o without adding -, mahout can not parse the following parameters, so the error is reported.

At this point, the study of "testing how to solve the problem of kmean Times" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Tests Times Learning parameters commands more errors help input practicality next methods examples articles methods time Theory knowledge articles websites Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Linux Shulou Information MySQL Xiaomi