You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Mickael Olivier (JIRA)" <ji...@apache.org> on 2014/08/22 17:04:10 UTC

[jira] [Updated] (FLUME-2447) Compilation with hadoop-2 profile fails

     [ https://issues.apache.org/jira/browse/FLUME-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mickael Olivier updated FLUME-2447:
-----------------------------------

    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.

  was:
Using the following command, using 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.


> Compilation with hadoop-2 profile fails
> ---------------------------------------
>
>                 Key: FLUME-2447
>                 URL: https://issues.apache.org/jira/browse/FLUME-2447
>             Project: Flume
>          Issue Type: Dependency upgrade
>          Components: Sinks+Sources
>    Affects Versions: v1.5.0.1
>         Environment: x86_64 RHEL 6.5
>            Reporter: Mickael Olivier
>              Labels: maven, profile
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)