You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Ashish Singh (JIRA)" <ji...@apache.org> on 2013/11/14 23:13:24 UTC

[jira] [Comment Edited] (FALCON-106) Falcon compilation fails for hadoop-2 profile

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

Ashish Singh edited comment on FALCON-106 at 11/14/13 10:12 PM:
----------------------------------------------------------------

Worked on the hadoop-2 profile issue. Hope I have nailed down the issue, where -P can be used to activate the required profile.
No -D for profile is required.

This Patch resolves below issue:
1. Removing the activeByDefault from all the child profiles. Child profile should be used to pick the right dependency for hadoop-1 and hadoop-2. Parent pom profile has the precedence.
    Default profile is hadoop-1 in parent pom.
2. Fixing Hadoop dependency for falcon modules.
3. Moving the rat check plugin to -P release profile.


Maven Commands used to test the above patch (Tested for hadoop-2 profile, assume it will work for hadoop-1 also.):

StandAlone:
mvn help:active-profiles clean -Phadoop-2 -DskipCheck=true -Dcheckstyle.skip=true dependency:tree install -DskipTests assembly:assembly

Distributed:
mvn -B -e help:active-profiles clean -Phadoop-2,distributed -DskipCheck=true -Dcheckstyle.skip=true dependency:tree install -DskipTests assembly:assembly


Unit Test:
mvn -fae clean -Phadoop-2,release verify install


Patch file
https://issues.apache.org/jira/secure/attachment/12613949/falcon-106-build-2.x.v3.patch




was (Author: ashishujjain):
Worked on the hadoop-2 profile issue. Hope I have nailed down the issue, where -P can be used to activate the required profile.
No -D for profile is required.

This Patch resolves below issue:
1. Removing the activeByDefault from all the child profiles. Child profile should be used to pick the right dependency for hadoop-1 and hadoop-2. Parent pom profile has the precedence.
    Default profile is hadoop-1 in parent pom.
2. Fixing Hadoop dependency for falcon modules.
3. Moving the rat check plugin to -P release profile.


Maven Commands used to test the above patch (Tested for hadoop-2 profile, assume it will work for hadoop-1 also.):

StandAlone:
mvn help:active-profiles clean -Phadoop-2 -DskipCheck=true -Dcheckstyle.skip=true dependency:tree install -DskipTests assembly:assembly

Distributed:
mvn -B -e help:active-profiles clean -Phadoop-2,distributed -DskipCheck=true -Dcheckstyle.skip=true dependency:tree install -DskipTests assembly:assembly


Unit Test:
mvn -fae clean -Phadoop-2,release verify install



> Falcon compilation fails for hadoop-2 profile
> ---------------------------------------------
>
>                 Key: FALCON-106
>                 URL: https://issues.apache.org/jira/browse/FALCON-106
>             Project: Falcon
>          Issue Type: Bug
>          Components: build-tools
>            Reporter: Suresh Srinivas
>            Assignee: Shwetha G S
>         Attachments: falcon-106-build-2.x.v3.patch, falcon-build-2.x.patch, falcon-build-2.x.v2.patch, falcon-build-2.x.v2.patch, falcon-build-2.x.v3.patch
>
>
> Mainly due to hadoop-core and hadoop-test artifacts not being available in hadoop 2.x.



--
This message was sent by Atlassian JIRA
(v6.1#6144)