[
https://issues.apache.org/jira/browse/MAHOUT-1550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13996351#comment-13996351
]
Gokhan Capan edited comment on MAHOUT-1550 at 5/13/14 1:10 PM:
---------------------------------------------------------------
Paul,
Did you try building mahout using hadoop 2 profile first? The way to do it is:
mvn clean package -DskipTests=true -Dhadoop2.version=<YOUR_HADOOP_VERSION>
Let us know if this fails
was (Author: gokhancapan):
Paul,
Did you try build mahout using hadoop 2 profile first? The way to do it is:
mvn clean package -DskipTests=true -Dhadoop2.version=<YOUR_HADOOP_VERSION>
Let us know if this fails
> Naive Bayes training fails with Hadoop 2
> ----------------------------------------
>
> Key: MAHOUT-1550
> URL: https://issues.apache.org/jira/browse/MAHOUT-1550
> Project: Mahout
> Issue Type: Bug
> Components: Math
> Affects Versions: 1.0
> Environment: Ubuntu - Mahout 1.0-SNAPSHOT - Hadoop 2
> Reporter: Paul Marret
> Priority: Minor
> Labels: bayesian, training
> Attachments: mahout-snapshot.patch, stacktrace.txt
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> When using the trainnb option of the program, we get the following error:
> Exception in thread "main" java.lang.IncompatibleClassChangeError: Found
> interface org.apache.hadoop.mapreduce.JobContext, but class was expected
> at
> org.apache.mahout.common.HadoopUtil.getCustomJobName(HadoopUtil.java:174)
> at
> org.apache.mahout.common.AbstractJob.prepareJob(AbstractJob.java:614)
> at
> org.apache.mahout.classifier.naivebayes.training.TrainNaiveBayesJob.run(TrainNaiveBayesJob.java:100)
> [...]
> It is possible to correct this by modifying the file
> mrlegacy/src/main/java/org/apache/mahout/common/HadoopUtil.java and
> converting the instance job (line 174) to a Job object (it is a JobContext in
> the current version).
--
This message was sent by Atlassian JIRA
(v6.2#6252)