mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: Error: ... overrides final method tokenStream
Date Fri, 06 Apr 2012 19:18:23 GMT
Try removing your whole Maven repository and rebuilding. Sometimes
multiple versions of the same library causes problems. It is also
possible to switch to other Lucene versions in the pom files.

Lance

On Fri, Apr 6, 2012 at 9:46 AM, Tristan Slominski
<tristan.slominski@gmail.com> wrote:
> Thanks Sean, I will look into it further.
>
> I guess I should also mention that some of the examples work just fine, for
> example `$MAHOUT_HOME/examples/bin/classify-20newsgroups.sh` works ( option
> #1, naivebayes ).
>
> However, others break, for example
> `$MAHOUT_HOME/examples/bin/cluster-reuters.sh` ( option #4 dirichlet
> clustering ) breaks with
>
> Error: class org.apache.mahout.vectorizer.DefaultAnalyzer overrides final
> method
> tokenStream.(Ljava/lang/String;Ljava/io/Reader;)Lorg/apache/lucene/analysis/TokenStream;
>
>
> So it gives the impression that the examples are outdated, because
> `classify-20newsgroups.sh` appears to use naive bayes and it works, and
> wikipedia examples appear to use naive bayes and it breaks.
>
> I'll keep looking into it.
>
> On Fri, Apr 6, 2012 at 09:47, Sean Owen <srowen@gmail.com> wrote:
>
>> It's coming from somewhere else then. I think you'd want to examine
>> the rest of the classpaths. You do not need to put Lucene jars in the
>> classpath yourself. It will just cause issues. You will  need to make
>> sure you're looking at the remote cluster's classpath, if it's remote.
>>
>> On Fri, Apr 6, 2012 at 3:42 PM, Tristan Slominski
>> <tristan.slominski@gmail.com> wrote:
>> > Thanks Sean,
>> >
>> > I tried to wrap my mind around where an incompatible version of Lucene
>> > could be coming from. I'm assuming that this happens during the Hadoop
>> job
>> > execution based on the output below:
>>



-- 
Lance Norskog
goksron@gmail.com

Mime
View raw message