hi all,

I'm still blocked on this issue.
I can't specify "mapred.job.queue.name" when I try to submit the naivebayes 
example job of mahout.
I try to change source code, try different version of mahout, but not find 
anything useful.
Could anybody help me on this issue : how to specify mapred.queue when run 
naivebayes example of mahout.

My cmd :
hadoop --config /opt/hadoop/program//conf -Dmapred.job.queue.name=testQueue jar 
examples/target/mahout-examples-0.6-SNAPSHOT-job.jar 
org.apache.mahout.driver.MahoutDriver trainclassifier -i 
/home/test/20news-bydate/ba    yes-train-input -o 
/home/test/20news-bydate/bayes-model -type bayes -ng 1 -source hdfs
OR
/opt/hadoop/program//bin/hadoop --config /opt/hadoop/program//conf  jar 
/home/knowledge/work/project/mahout/mahout-trunk/trunk/examples/target/mahout-examples-0.6-SNAPSHOT-job.jar
 org.apache.mahout.driver.MahoutDriver trainclassifier 
-Dmapred.job.queue.name=search-quality -i 
/home/knowledge//20news-bydate/bayes-train-input -o 
/home/knowledge//20news-bydate/bayes-model -type bayes -ng 1 -source hdfs

Error :

11/12/14 15:05:41 ERROR bayes.TrainClassifier: Error while parsing options
org.apache.commons.cli2.OptionException: Unexpected 
-Dmapred.job.queue.name=search-quality while processing Options
    at org.apache.commons.cli2.commandline.Parser.parse(Parser.java:99)
    at 
org.apache.mahout.classifier.bayes.TrainClassifier.main(TrainClassifier.java:107)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

thanks,
enyun




At 2011-12-14 03:28:29,"Lance Norskog" <[email protected]> wrote:
>It was about how "-Dproperty=value" arguments are sorted. The issue
>added a change so that these arguments were handled first.
>
>On Tue, Dec 13, 2011 at 2:24 AM, Sean Owen <[email protected]> wrote:
>> What are you referring to here? I don't know of anything that would be
>> relevant.
>>
>> On Tue, Dec 13, 2011 at 3:45 AM, Lance Norskog <[email protected]> wrote:
>>
>>> There was a bug in Mahout 0.5 which was fixed. Are you using Mahout
>>> 0.5, or trunk?
>>>
>>>
>
>
>
>-- 
>Lance Norskog
>[email protected]

Reply via email to