You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Ashish Singh (JIRA)" <ji...@apache.org> on 2012/10/18 03:10:03 UTC

[jira] [Comment Edited] (MAHOUT-1102) Mahout build fails for default profile if hadoop.version is passed as arguments.

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

Ashish Singh edited comment on MAHOUT-1102 at 10/18/12 1:08 AM:
----------------------------------------------------------------

Attached the patch file.

using the command
$MAVEN_HOME/bin/mvn clean help:active-profiles install -Dmahout.skip.distribution=false -DskipTests -Dhadoop.version=1.1.0 -P hadoop-0.20

Build goes through.
                
      was (Author: ashishujjain):
    using the command
$MAVEN_HOME/bin/mvn clean help:active-profiles install -Dmahout.skip.distribution=false -DskipTests -Dhadoop.version=1.1.0 -P hadoop-0.20

Build goes through.
                  
> Mahout build fails for default profile if hadoop.version is passed as arguments.
> --------------------------------------------------------------------------------
>
>                 Key: MAHOUT-1102
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1102
>             Project: Mahout
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.7
>            Reporter: Ashish Singh
>             Fix For: 1.0, 0.7, 0.8
>
>         Attachments: MAHOUT-1102.patch
>
>
> Default hadoop-0.20 profile is used for mahout-core. Profile hadoop-0.23 is driven by hadoop.version variable defined at command line.
> The build fails for hadoop-common and hadoop-maprreduce dependency as these jars are not the part of hadoop-1.1.x. 
> hadoop.version change to 1.1.x at command line, makes hadoop-0.23 profile to be activated, and we don't want to activate hadoop-0.23 profile for hadoop-1.1.x. 
> If hadoop.version is overridden and hadoop-20 profile is activated and hadoop-23 profile is deactivated using command
> mvn -P hadoop-0.20,'!hadoop-0.23' -Dhadoop.version=1.1.0 help:active-profiles clean install -DskipTests.
> This results in mahout-integration project failure for the dependency of hadoop-common and hadoop-maprreduce.
> Moving the profile from core/pom.xml to parent pom.xml resolve the Issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira