You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Nantia Makrynioti <na...@gmail.com> on 2016/04/25 12:27:24 UTC

Mahout with Hadoop 2.2.0

Hello,

I have installed Hadoop 2.2.0 on an Ubuntu 14.04 machine. I built Mahout
0.9 with

mvn clean package -Dhadoop2.version=2.2.0

but when I run the 20newsgroups classification example, I get the following
exception:

java.lang.IncompatibleClassChangeError: Found interface
org.apache.hadoop.mapreduce.JobContext, but class was expected

How can I run Mahout with Hadoop 2.2.0?

Thank you in advance,
Nantia

Re: Mahout with Hadoop 2.2.0

Posted by Nantia Makrynioti <na...@gmail.com>.
Thank you very much, Suneel! It works now.
Στις 25 Απρ 2016 17:20, ο χρήστης "Suneel Marthi" <sm...@apache.org>
έγραψε:

> On Mon, Apr 25, 2016 at 9:16 AM, Nantia Makrynioti <na...@gmail.com>
> wrote:
>
> > Thank for your replies!
> >
> > Mahout 0.12.0 from command line worked great.
> >
> > However, if I want to develop the same example with Java API, what
> version
> > of mahout-core should I use in the pom.xml?
> >
> > I tried mahout-core 0.12.0, but it does not exist. With mahout-core 0.9 I
> > got the same exception as in the previous email.
> >
>
> It should mahout-mr not mahout-core since Mahout 0.10.0
>
> >
> > java.lang.IncompatibleClassChangeError: Found interface
> > org.apache.hadoop.mapreduce.JobContext, but class was expected
> >
> > The exception was thrown during training of Naive Bayes model. I use
> > TrainNaiveBayesJob and ToolRunner classes to train the model.
> >
> >
> >
> >
> >
> > 2016-04-25 16:06 GMT+03:00 Alen Xia <su...@yahoo.com.invalid>:
> >
> > > https://issues.apache.org/jira/browse/MAHOUT-1354
> > >
> > > Hope that helps :)
> > >
> > > 发自我的 iPhone
> > >
> > > > 在 2016年4月25日,18:27,Nantia Makrynioti <na...@gmail.com> 写道:
> > > >
> > > > Hello,
> > > >
> > > > I have installed Hadoop 2.2.0 on an Ubuntu 14.04 machine. I built
> > Mahout
> > > > 0.9 with
> > > >
> > > > mvn clean package -Dhadoop2.version=2.2.0
> > > >
> > > > but when I run the 20newsgroups classification example, I get the
> > > following
> > > > exception:
> > > >
> > > > java.lang.IncompatibleClassChangeError: Found interface
> > > > org.apache.hadoop.mapreduce.JobContext, but class was expected
> > > >
> > > > How can I run Mahout with Hadoop 2.2.0?
> > > >
> > > > Thank you in advance,
> > > > Nantia
> > >
> >
>

Re: Mahout with Hadoop 2.2.0

Posted by Suneel Marthi <sm...@apache.org>.
On Mon, Apr 25, 2016 at 9:16 AM, Nantia Makrynioti <na...@gmail.com>
wrote:

> Thank for your replies!
>
> Mahout 0.12.0 from command line worked great.
>
> However, if I want to develop the same example with Java API, what version
> of mahout-core should I use in the pom.xml?
>
> I tried mahout-core 0.12.0, but it does not exist. With mahout-core 0.9 I
> got the same exception as in the previous email.
>

It should mahout-mr not mahout-core since Mahout 0.10.0

>
> java.lang.IncompatibleClassChangeError: Found interface
> org.apache.hadoop.mapreduce.JobContext, but class was expected
>
> The exception was thrown during training of Naive Bayes model. I use
> TrainNaiveBayesJob and ToolRunner classes to train the model.
>
>
>
>
>
> 2016-04-25 16:06 GMT+03:00 Alen Xia <su...@yahoo.com.invalid>:
>
> > https://issues.apache.org/jira/browse/MAHOUT-1354
> >
> > Hope that helps :)
> >
> > 发自我的 iPhone
> >
> > > 在 2016年4月25日,18:27,Nantia Makrynioti <na...@gmail.com> 写道:
> > >
> > > Hello,
> > >
> > > I have installed Hadoop 2.2.0 on an Ubuntu 14.04 machine. I built
> Mahout
> > > 0.9 with
> > >
> > > mvn clean package -Dhadoop2.version=2.2.0
> > >
> > > but when I run the 20newsgroups classification example, I get the
> > following
> > > exception:
> > >
> > > java.lang.IncompatibleClassChangeError: Found interface
> > > org.apache.hadoop.mapreduce.JobContext, but class was expected
> > >
> > > How can I run Mahout with Hadoop 2.2.0?
> > >
> > > Thank you in advance,
> > > Nantia
> >
>

Re: Mahout with Hadoop 2.2.0

Posted by Nantia Makrynioti <na...@gmail.com>.
Thank for your replies!

Mahout 0.12.0 from command line worked great.

However, if I want to develop the same example with Java API, what version
of mahout-core should I use in the pom.xml?

I tried mahout-core 0.12.0, but it does not exist. With mahout-core 0.9 I
got the same exception as in the previous email.

java.lang.IncompatibleClassChangeError: Found interface
org.apache.hadoop.mapreduce.JobContext, but class was expected

The exception was thrown during training of Naive Bayes model. I use
TrainNaiveBayesJob and ToolRunner classes to train the model.





2016-04-25 16:06 GMT+03:00 Alen Xia <su...@yahoo.com.invalid>:

> https://issues.apache.org/jira/browse/MAHOUT-1354
>
> Hope that helps :)
>
> 发自我的 iPhone
>
> > 在 2016年4月25日,18:27,Nantia Makrynioti <na...@gmail.com> 写道:
> >
> > Hello,
> >
> > I have installed Hadoop 2.2.0 on an Ubuntu 14.04 machine. I built Mahout
> > 0.9 with
> >
> > mvn clean package -Dhadoop2.version=2.2.0
> >
> > but when I run the 20newsgroups classification example, I get the
> following
> > exception:
> >
> > java.lang.IncompatibleClassChangeError: Found interface
> > org.apache.hadoop.mapreduce.JobContext, but class was expected
> >
> > How can I run Mahout with Hadoop 2.2.0?
> >
> > Thank you in advance,
> > Nantia
>

Re: Mahout with Hadoop 2.2.0

Posted by Alen Xia <su...@yahoo.com.INVALID>.
https://issues.apache.org/jira/browse/MAHOUT-1354

Hope that helps :)

发自我的 iPhone

> 在 2016年4月25日,18:27,Nantia Makrynioti <na...@gmail.com> 写道:
> 
> Hello,
> 
> I have installed Hadoop 2.2.0 on an Ubuntu 14.04 machine. I built Mahout
> 0.9 with
> 
> mvn clean package -Dhadoop2.version=2.2.0
> 
> but when I run the 20newsgroups classification example, I get the following
> exception:
> 
> java.lang.IncompatibleClassChangeError: Found interface
> org.apache.hadoop.mapreduce.JobContext, but class was expected
> 
> How can I run Mahout with Hadoop 2.2.0?
> 
> Thank you in advance,
> Nantia

Re: Mahout with Hadoop 2.2.0

Posted by Suneel Marthi <sm...@apache.org>.
Mahout 0.9 is not supported anymore and u shouldn't be using it.

The issue u r seeing is due to Mahout 0.9 not being compatible with hadoop
2.x.

Suggest you try this example with Mahout 0.11.0 or 0.12.0.



On Mon, Apr 25, 2016 at 6:27 AM, Nantia Makrynioti <na...@gmail.com>
wrote:

> Hello,
>
> I have installed Hadoop 2.2.0 on an Ubuntu 14.04 machine. I built Mahout
> 0.9 with
>
> mvn clean package -Dhadoop2.version=2.2.0
>
> but when I run the 20newsgroups classification example, I get the following
> exception:
>
> java.lang.IncompatibleClassChangeError: Found interface
> org.apache.hadoop.mapreduce.JobContext, but class was expected
>
> How can I run Mahout with Hadoop 2.2.0?
>
> Thank you in advance,
> Nantia
>