千家信息网

测试kmean时报错怎么解决

发表于:2025-12-03 作者:千家信息网编辑
千家信息网最后更新 2025年12月03日,这篇文章主要介绍"测试kmean时报错怎么解决",在日常操作中,相信很多人在测试kmean时报错怎么解决问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"测试kmean时报
千家信息网最后更新 2025年12月03日测试kmean时报错怎么解决

这篇文章主要介绍"测试kmean时报错怎么解决",在日常操作中,相信很多人在测试kmean时报错怎么解决问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"测试kmean时报错怎么解决"的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

测试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

报出先面的错误

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                14/01/23 12:43:35 INFO driver.MahoutDriver: Program took 149 ms

解决办法:输入命令参数o 前面没有加- ,mahout不能解析后面的参数,所以报出来的错误.

到此,关于"测试kmean时报错怎么解决"的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注网站,小编会继续努力为大家带来更多实用的文章!

测试 时报 学习 参数 命令 更多 错误 帮助 输入 实用 接下来 办法 实例 文章 方法 时候 理论 知识 篇文章 网站 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 为客户管理云服务器 上海威寻网络技术成都招聘 方舟生存进化服务器开不了控制台 数据库管理 大专 不加班 国外盗版小游戏服务器 网络技术前沿是什么 河南滑县网络安全 软件开发过程中常犯的错误 学校网络安全建设的意义 什么是动车组网络技术 恒生互联网科技趋势 软件开发销售的财务处理 博兴物流竞价软件开发价格 macbook 软件开发优势 我的世界跑酷练习服务器ip 可视创软件开发 湖南整治网络安全 TradingView自己服务器 大学网络安全竞赛排名 网络技术研发对联 普陀区购买网络技术转让哪里好 税控服务器管理系统网站登录 互联网科技巨头排名 浦东新区即时网络技术造型设计 局域网中无法访问服务器中的文件 数据库插入异常删除异常 服务器数据管理模块设计 上海专业led大屏服务器 医院网络安全责任人巡查记录表 幻塔如何更换服务器视频
0