You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Benjamin Eckstein <um...@gmail.com> on 2014/10/24 00:51:30 UTC
Invoking Mahout 0.9 with Lucene 4.6.1 ClassNotFoundException
Hello, i have 2 lines of code, that produces a class not found exception
Re: Invoking Mahout 0.9 with Lucene 4.6.1 ClassNotFoundException
Posted by Benjamin Eckstein <um...@gmail.com>.
sorry: Part 2.
String[] args = {"--field title","--dir ressources/mahout/tmp",
"--dictOut term_dictionary.txt","--output sequence.file","--idfield isbn"};
org.apache.mahout.utils.vectors.lucene.Driver.main(args);
I have posted more details on Stackoverflow see
http://stackoverflow.com/questions/26537128/java-mahout-class-termvectormapper-not-found
I try to produce a vector file via java according to this presentation
http://prezi.com/z0dmaxdyuci0/equipping-solr-with-semantic-search-and-recommendation/
Greets and sorry for 2 emails,
Ben
On Fri, Oct 24, 2014 at 12:51 AM, Benjamin Eckstein <um...@gmail.com>
wrote:
> Hello, i have 2 lines of code, that produces a class not found exception
>
>
Re: Invoking Mahout 0.9 with Lucene 4.6.1 ClassNotFoundException
Posted by Benjamin Eckstein <um...@gmail.com>.
I try to create a vector map from lucene within java. mahout is trying to
invoke lucene 3.x classes not me.
i will be grateful, if someone can give me a sample code of how to create a
vector file from a lucene 4.x index directory.
http://mahout.apache.org/users/basics/creating-vectors-from-text.html
According to this site, but only with java and not with commandline tools.
Thank you,
Ben
On Fri, Oct 24, 2014 at 1:28 AM, Suneel Marthi <sm...@apache.org> wrote:
> You can't be using Lucene 4x with Lucene 3x. Lucene 4x is not backward
> compatible with Lucene 3x.
> R u trying to set TermVectors and offsets, if so it should be done
> differently with Lucene 4x, see TestClusterDumper.java for an example.
>
> On Thu, Oct 23, 2014 at 7:15 PM, Benjamin Eckstein <um...@gmail.com>
> wrote:
>
> > what information do you need?
> > I use mahout 0.9 and lucene 4.6.1 via maven depency.
> >
> > those two line in the main method produces the error
> > String[] args = {"--field title","--dir ressources/mahout/tmp",
> > "--dictOut term_dictionary.txt","--output sequence.file","--idfield
> isbn"};
> > org.apache.mahout.utils.vectors.lucene.Driver.main(args);
> >
> > here are all dependencies
> >
> > <dependencies>
> > <dependency>
> > <groupId>org.apache.jena</groupId>
> > <artifactId>apache-jena-libs</artifactId>
> > <type>pom</type>
> > <version>2.12.0</version>
> > </dependency>
> > <dependency>
> > <groupId>mysql</groupId>
> > <artifactId>mysql-connector-java</artifactId>
> > <version>5.1.6</version>
> > </dependency>
> > <dependency>
> > <groupId>junit</groupId>
> > <artifactId>junit</artifactId>
> > <version>4.11</version>
> > <scope>test</scope>
> > </dependency>
> >
> > <dependency>
> > <groupId>org.apache.lucene</groupId>
> > <artifactId>lucene-core</artifactId>
> > <version>4.6.1</version>
> > </dependency>
> > <dependency>
> > <groupId>org.apache.lucene</groupId>
> > <artifactId>lucene-analyzers</artifactId>
> > <version>3.6.2</version>
> > </dependency>
> > <dependency>
> > <groupId>org.apache.lucene</groupId>
> > <artifactId>lucene-queryparser</artifactId>
> > <version>4.6.1</version>
> > </dependency>
> > <dependency>
> > <groupId>org.apache.lucene</groupId>
> > <artifactId>lucene-analyzers-common</artifactId>
> > <version>4.6.1</version>
> > </dependency>
> > <dependency>
> > <groupId>org.apache.mahout</groupId>
> > <artifactId>mahout-core</artifactId>
> > <version>0.9</version>
> > </dependency>
> > <dependency>
> > <groupId>org.apache.mahout</groupId>
> > <artifactId>mahout-utils</artifactId>
> > <version>0.5</version>
> > </dependency>
> > <dependency>
> > <groupId>org.apache.mahout</groupId>
> > <artifactId>mahout-integration</artifactId>
> > <version>0.9</version>
> > </dependency>
> >
> > On Fri, Oct 24, 2014 at 12:53 AM, thejas prasad <th...@gmail.com>
> > wrote:
> >
> > > Can you please provide more information?
> > >
> > > On Thu, Oct 23, 2014 at 3:51 PM, Benjamin Eckstein <um...@gmail.com>
> > > wrote:
> > >
> > > > Hello, i have 2 lines of code, that produces a class not found
> > exception
> > > >
> > >
> >
>
Re: Invoking Mahout 0.9 with Lucene 4.6.1 ClassNotFoundException
Posted by Suneel Marthi <sm...@apache.org>.
You can't be using Lucene 4x with Lucene 3x. Lucene 4x is not backward
compatible with Lucene 3x.
R u trying to set TermVectors and offsets, if so it should be done
differently with Lucene 4x, see TestClusterDumper.java for an example.
On Thu, Oct 23, 2014 at 7:15 PM, Benjamin Eckstein <um...@gmail.com> wrote:
> what information do you need?
> I use mahout 0.9 and lucene 4.6.1 via maven depency.
>
> those two line in the main method produces the error
> String[] args = {"--field title","--dir ressources/mahout/tmp",
> "--dictOut term_dictionary.txt","--output sequence.file","--idfield isbn"};
> org.apache.mahout.utils.vectors.lucene.Driver.main(args);
>
> here are all dependencies
>
> <dependencies>
> <dependency>
> <groupId>org.apache.jena</groupId>
> <artifactId>apache-jena-libs</artifactId>
> <type>pom</type>
> <version>2.12.0</version>
> </dependency>
> <dependency>
> <groupId>mysql</groupId>
> <artifactId>mysql-connector-java</artifactId>
> <version>5.1.6</version>
> </dependency>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.11</version>
> <scope>test</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.lucene</groupId>
> <artifactId>lucene-core</artifactId>
> <version>4.6.1</version>
> </dependency>
> <dependency>
> <groupId>org.apache.lucene</groupId>
> <artifactId>lucene-analyzers</artifactId>
> <version>3.6.2</version>
> </dependency>
> <dependency>
> <groupId>org.apache.lucene</groupId>
> <artifactId>lucene-queryparser</artifactId>
> <version>4.6.1</version>
> </dependency>
> <dependency>
> <groupId>org.apache.lucene</groupId>
> <artifactId>lucene-analyzers-common</artifactId>
> <version>4.6.1</version>
> </dependency>
> <dependency>
> <groupId>org.apache.mahout</groupId>
> <artifactId>mahout-core</artifactId>
> <version>0.9</version>
> </dependency>
> <dependency>
> <groupId>org.apache.mahout</groupId>
> <artifactId>mahout-utils</artifactId>
> <version>0.5</version>
> </dependency>
> <dependency>
> <groupId>org.apache.mahout</groupId>
> <artifactId>mahout-integration</artifactId>
> <version>0.9</version>
> </dependency>
>
> On Fri, Oct 24, 2014 at 12:53 AM, thejas prasad <th...@gmail.com>
> wrote:
>
> > Can you please provide more information?
> >
> > On Thu, Oct 23, 2014 at 3:51 PM, Benjamin Eckstein <um...@gmail.com>
> > wrote:
> >
> > > Hello, i have 2 lines of code, that produces a class not found
> exception
> > >
> >
>
Re: Invoking Mahout 0.9 with Lucene 4.6.1 ClassNotFoundException
Posted by Benjamin Eckstein <um...@gmail.com>.
what information do you need?
I use mahout 0.9 and lucene 4.6.1 via maven depency.
those two line in the main method produces the error
String[] args = {"--field title","--dir ressources/mahout/tmp",
"--dictOut term_dictionary.txt","--output sequence.file","--idfield isbn"};
org.apache.mahout.utils.vectors.lucene.Driver.main(args);
here are all dependencies
<dependencies>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>apache-jena-libs</artifactId>
<type>pom</type>
<version>2.12.0</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>4.6.1</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers</artifactId>
<version>3.6.2</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-queryparser</artifactId>
<version>4.6.1</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
<version>4.6.1</version>
</dependency>
<dependency>
<groupId>org.apache.mahout</groupId>
<artifactId>mahout-core</artifactId>
<version>0.9</version>
</dependency>
<dependency>
<groupId>org.apache.mahout</groupId>
<artifactId>mahout-utils</artifactId>
<version>0.5</version>
</dependency>
<dependency>
<groupId>org.apache.mahout</groupId>
<artifactId>mahout-integration</artifactId>
<version>0.9</version>
</dependency>
On Fri, Oct 24, 2014 at 12:53 AM, thejas prasad <th...@gmail.com> wrote:
> Can you please provide more information?
>
> On Thu, Oct 23, 2014 at 3:51 PM, Benjamin Eckstein <um...@gmail.com>
> wrote:
>
> > Hello, i have 2 lines of code, that produces a class not found exception
> >
>
Re: Invoking Mahout 0.9 with Lucene 4.6.1 ClassNotFoundException
Posted by thejas prasad <th...@gmail.com>.
Can you please provide more information?
On Thu, Oct 23, 2014 at 3:51 PM, Benjamin Eckstein <um...@gmail.com> wrote:
> Hello, i have 2 lines of code, that produces a class not found exception
>