In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.