falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Singh (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FALCON-106) Falcon compilation fails for hadoop-2 profile
Date Thu, 14 Nov 2013 22:13:24 GMT

    [ 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)

Mime
View raw message