mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 周峰 <feng2...@gmail.com>
Subject a problem of TasteCommandLine
Date Thu, 29 Oct 2009 03:00:18 GMT
Hi,today i run the example of
"org.apache.mahout.cf.taste.hadoop.SlopeOnePrefsToDiffsJob" in
TasteCommandLine.html

root@master:/home/zhoufeng/newdisk/hadoop-0.19.2# bin/hadoop jar
/home/zhoufeng/newdisk/result/trunk/core/target/mahout-core-0.3-SNAPSHOT.job
org.apache.mahout.cf.taste.hadoop.SlopeOnePrefsToDiffsJob -i r.txt -o output

java.lang.NoSuchMethodError:
org.apache.hadoop.mapred.JobConf.setBooleanIfUnset(Ljava/lang/String;Z)V
 at org.apache.hadoop.mapreduce.Job.setUseNewAPI(Job.java:388)
 at org.apache.hadoop.mapreduce.Job.submit(Job.java:431)
 at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:447)
 at
org.apache.mahout.cf.taste.hadoop.SlopeOnePrefsToDiffsJob.main(SlopeOnePrefsToDiffsJob.java:86)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.hadoop.util.RunJar.main(RunJar.java:165)
 at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
 at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
 at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
 at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)

then i browsed the javadoc of hadoop0.18.3,hadoop0.19.2,hadoop0.20.1,but i
can not find out org.apache.hadoop.mapred.JobConf.setBooleanIfUnset.
How could i solve this problem? thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message