在尝试运行随机森林示例时,出现以下错误-
hadoop jar mahout-core-0.9-job.jar org.apache.mahout.classifier.df.tools.Describe –p testdata/KDDTrain+.arff –f testdata/KDDTrain+.info -d N 3 C 2 N C 4 N C 8 N 2 C 19 N L I encounter the following error: WARN tools.Describe: org.apache.commons.cli2.OptionException: Unexpected ?p while processing Options Usage:
[--path --file --descriptor [ ...]
--regression --help]
Options
--path (-p) path Data path
--file (-f) file Path to generated descriptor file
--descriptor (-d) descriptor [descriptor ...] data descriptor
--regression (-r) Regression Problem
--help (-h) Print out help
谁可以帮我这个事?
最佳答案
that is typo mistake. its -p in your command.but it look something different(i think you paste it in command prompt)
command like this:
hadoop jar /usr/lib/mahout/mahout-examples-0.7-cdh4.6.0-job.jar org.apache.mahout.classifier.df.tools.Describe -p /user/root/mahout/rinput.csv -f /user/root/mahout/rinput.info -d I 9 N L
刚放-在p之前
关于macos - 如何在随机森林示例中生成文件描述符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29117532/