You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "jay vyas (JIRA)" <ji...@apache.org> on 2014/09/29 03:17:34 UTC

[jira] [Comment Edited] (BIGTOP-1470) Mahout 0.9 couldn't work with hadoop 2.x

    [ https://issues.apache.org/jira/browse/BIGTOP-1470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151290#comment-14151290 ] 

jay vyas edited comment on BIGTOP-1470 at 9/29/14 1:17 AM:
-----------------------------------------------------------

I think so , because i had the same error when runnign.  I was unable to run the mahout smoke tests for BIGTOP-1453 . Now a closed duplicate of this jira,. 

[~huLiu], thanks for confirming this and proposing the fix.


was (Author: jayunit100):
I think so , because i had the same error when runnign.  I was unable to run the mahout smoke tests for BIGTOP-1453 . No a closed subtask of this jira.  

[~huLiu], thanks for confirming this and proposing the fix.

> Mahout 0.9 couldn't work with hadoop 2.x
> ----------------------------------------
>
>                 Key: BIGTOP-1470
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1470
>             Project: Bigtop
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.8.0
>            Reporter: Hu Liu,
>            Priority: Blocker
>
> I built Mahout 0.9 with Bigtop and found it couldn't work with hadoop 2.x.
> {code}
> 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.cf.taste.hadoop.preparation.PreparePreferenceMatrixJob.run(PreparePreferenceMatrixJob.java:73)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>     at org.apache.mahout.cf.taste.hadoop.item.RecommenderJob.run(RecommenderJob.java:164)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>     at org.apache.mahout.cf.taste.hadoop.item.RecommenderJob.main(RecommenderJob.java:322)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72)
>     at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
>     at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:152)
>     at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:195)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
> {code}
> The root cause is that bigtop uses the wrong parameter hadoop2.version when building Mahout.
> {code}
> mvn clean install -Dmahout.skip.distribution=false -DskipTests -Dhadoop2.version=$HADOOP_VERSION "$@"
> {code} 
> For Mahout 0.9 , the correct property is hadoop.version in pom.xml of Mahout 0.9
> {code}
> <hadoop.version>1.2.1</hadoop.version>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)