0

全て!プロジェクトで RecommenderJob を使用すると、予期しないエラーが発生しました。ジョブに渡される引数は、次の値を持つ String 配列です。

[-libjars, /path/to/xxx.jar,/path/to/yyy.jar, 
--input, hdfs://localhost:9000/tmp/x, 
--output, hdfs://localhost:9000/tmp/y, 
--similarityClassname, 
org.apache.mahout.math.hadoop.similarity.cooccurrence.measures.TanimotoCoefficientSimilarity, 
--numRecommendations, 6, 
--tempDir, hdfs://localhost:9000/tmp/z]

次のコードでジョブを実行した後:

job.run(args);

次のようにエラーを出力します。

ERROR common.AbstractJob: Unexpected -libjars 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.
Unexpected -libjars while processing Job-Specific Options:                      
Usage:
...

誰もそれを解決する方法を知っていますか。前もって感謝します!

4

1 に答える 1