On Mon, Apr 25, 2016 at 9:16 AM, Nantia Makrynioti <[email protected]> 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 <[email protected]>: > > > https://issues.apache.org/jira/browse/MAHOUT-1354 > > > > Hope that helps :) > > > > 发自我的 iPhone > > > > > 在 2016年4月25日,18:27,Nantia Makrynioti <[email protected]> 写道: > > > > > > 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 > > >
