Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.4.0
-
None
-
Added exclusion for hadoop common jar dependency in flume-ng-morphline-solr-sink
Description
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
Attaching patch to fix it.