mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Owen <sro...@gmail.com>
Subject Re: Mahout on Hadoop
Date Sat, 28 Nov 2009 17:22:46 GMT
Not quite, it should be fine on 0.20.x. Most of the code uses the old
0.19.x APIs, but they still exist.

The problem is this bit of the code is using the newer APIs, but,
there seems to be a bug in there. It complains that the job isn't
using the old APIs, when using the new APIs.

On Sat, Nov 28, 2009 at 5:09 PM, Zaki Rahaman <zaki.rahaman@gmail.com> wrote:
> Correct me if I'm wrong but I think you're using a newer version of hadoop
> (0.20 or newer) than what mahout currently supports (0.18.3 or 0.19 I
> believe). The difference is in the mapred / mapreduce APIs. Hope this helps
>
> Sent from my iPhone
>
> On Nov 28, 2009, at 6:16 AM, "Rajpal, Harjeet Kumar"
> <Harjeet.Kumar@Honeywell.com> wrote:
>
>> Hi,
>>
>> I am a newbie to Hadoop and Mahout. I have configured Hadoop on my
>> machine and tried to run mahout on this.
>>
>> I tried following command.
>>
>> $ bin/hadoop jar mahout-core-0.2-SNAPSHOT.job
>> org.apache.mahout.cf.taste.hadoop.RecommenderJob org.
>>
>> apache.mahout.cf.taste.impl.recommender.slopeone.SlopeOneRecommenderTest
>
>
>> 10 InputD/data1.txt InputD
>>
>> /data2.txt true
>>
>>
>>
>> I got following error message:
>>
>>
>>
>> 09/11/28 16:22:25 WARN conf.Configuration: DEPRECATED: hadoop-site.xml
>> found in the classpath. Usage of hadoop-site.xml is deprecated. Instead
>> use core-site.xml, mapred-site.xml and hdfs-site.xml to override
>> properties of core-default.xml, mapred-default.xml and hdfs-default.xml
>> respectively
>>
>> 09/11/28 16:22:25 WARN mapred.JobClient: Use GenericOptionsParser for
>> parsing the arguments. Applications should implement Tool for the same.
>>
>> Exception in thread "main" java.lang.RuntimeException:
>> java.lang.RuntimeException: class
>> org.apache.hadoop.mapreduce.lib.output.TextOutputFormat not
>> org.apache.hadoop.mapred.OutputFormat
>>
>>     at
>> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:840)
>>
>>     at
>> org.apache.hadoop.mapred.JobConf.getOutputFormat(JobConf.java:488)
>>
>>     at
>> org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:772)
>>
>>     at org.apache.hadoop.mapreduce.Job.submit(Job.java:432)
>>
>>     at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:447)
>>
>>     at
>> org.apache.mahout.cf.taste.hadoop.RecommenderJob.main(RecommenderJob.jav
>> a:66)
>>
>> Caused by: java.lang.RuntimeException: class
>> org.apache.hadoop.mapreduce.lib.output.TextOutputFormat not
>> org.apache.hadoop.mapred.OutputFormat
>>
>>     at
>> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:834)
>>
>>     ... 5 more
>>
>> Can anybody tell How to resolve this.
>>
>> Thanks in advance
>>
>>
>>
>> Best Regards,
>>
>> Harjeet Kumar Rajpal
>>
>>
>>
>

Mime
View raw message