Flume
  1. Flume
  2. FLUME-2447

Compilation with hadoop-2 profile fails

    Details

    • Type: Dependency upgrade Dependency upgrade
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: v1.5.0.1
    • Fix Version/s: None
    • Component/s: Sinks+Sources
    • Labels:
    • Environment:

      x86_64 RHEL 6.5

      Description

      Using the following command, and Oracle JDK 1.7.0, my compilation of Apache Flume fails :

      mvn -fn compile -Phadoop-2 -DskipTests -l mvn.compile.res

      That's because of a package, hadoop-test, that was present in hadoop 1 and does not exist anymore.

      A "temporary solution" I have found was to add the following depedency to the pom.xml file under hadoop-2 profile, copy/pasted from the hadoop-1 one :

      <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-test</artifactId>
      <version>1.0.1</version>
      </dependency>

      What do you guys think ? That "works" but may not be what we should do, as it may not be a clean way.

        Activity

        Hide
        Hari Shreedharan added a comment -

        To compile against hadoop-2:

        mvn clean install -Dhadoop.profile=2

        mvn seems to have an issue of not passing profile info to sub-modules - so using the -Dhadoop.profile=<profile_name> fixes the issue.

        Show
        Hari Shreedharan added a comment - To compile against hadoop-2: mvn clean install -Dhadoop.profile=2 mvn seems to have an issue of not passing profile info to sub-modules - so using the -Dhadoop.profile=<profile_name> fixes the issue.
        Hide
        Mickael Olivier added a comment -

        It does indeed work.
        I guess I'll close the issue as not a problem then.

        Thank you for your time.

        Show
        Mickael Olivier added a comment - It does indeed work. I guess I'll close the issue as not a problem then. Thank you for your time.
        Hide
        Mickael Olivier added a comment -

        Another option from maven would work.

        Show
        Mickael Olivier added a comment - Another option from maven would work.

          People

          • Assignee:
            Unassigned
            Reporter:
            Mickael Olivier
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development