You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "wolfgang hoschek (JIRA)" <ji...@apache.org> on 2013/09/08 07:59:51 UTC

[jira] [Commented] (FLUME-2184) flume-ng-morphline-solr-sink Build failing due to incorrect hadoop-common dependency declaration

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

wolfgang hoschek commented on FLUME-2184:
-----------------------------------------

Looks like the underlying problem is in the top level flume/pom.xml, which currently reads:

{code}
<profile>
  <id>hadoop-1.0</id>
    ...
    <hadoop.version>1.0.1</hadoop.version>
    ...
</profile>

...

<profile>
  <id>hadoop-2</id>
    ...
    <hadoop.version>2.0.0-alpha</hadoop.version>
    ...
</profile>

...
          <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-client</artifactId>
            <version>${hadoop.version}</version>
          </dependency>

{code}

Also note that the following works fine without your patch: mvn -Dhadoop.profile=2 clean test -DskipTests

                
> flume-ng-morphline-solr-sink Build failing due to incorrect hadoop-common dependency declaration
> ------------------------------------------------------------------------------------------------
>
>                 Key: FLUME-2184
>                 URL: https://issues.apache.org/jira/browse/FLUME-2184
>             Project: Flume
>          Issue Type: Bug
>          Components: Sinks+Sources
>    Affects Versions: v1.5.0
>            Reporter: Jagat Singh
>            Priority: Minor
>         Attachments: FLUME-2184-0.patch
>
>
> flume-ng-morphline-solr-sink build fails due to incorrect dependency declaration.
> Downloaded the code from flume git repo.
> Trying to build it
> mvn clean install -DskipTests
> It gives me this error.
> The project expects 1.0.1 version of jar which was never there at maven central.
> http://search.maven.org/#search|gav|1|g%3A%22org.apache.hadoop%22%20AND%20a%3A%22hadoop-common%22
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.1:process (default) on project flume-ng-morphline-solr-sink: Failed to resolve dependencies for one or more projects in the reactor. Reason: Missing:
> [ERROR] ----------
> [ERROR] 1) org.apache.hadoop:hadoop-common:jar:1.0.1
> [ERROR]
> [ERROR] Try downloading the file manually from the project website.
> [ERROR] Path to dependency:
> [ERROR] 1) org.apache.flume.flume-ng-sinks:flume-ng-morphline-solr-sink:jar:1.5.0-SNAPSHOT
> [ERROR] 2) com.cloudera.cdk:cdk-morphlines-all:pom:0.6.0
> [ERROR] 3) com.cloudera.cdk:cdk-morphlines-solr-core:jar:0.6.0
> [ERROR] 4) org.apache.solr:solr-core:jar:4.4.0
> [ERROR] 5) org.apache.hadoop:hadoop-common:jar:1.0.1
> Details here 
> http://mail-archives.apache.org/mod_mbox/flume-dev/201309.mbox/%3CCAJ-d8Xep4LcoSE0Yo%3D1w17CewQFzDU%2B5KQDa3DGZDT-oQ3XHYg%40mail.gmail.com%3E
> Attaching patch to fix it.

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