Flume编译报错: Failed to execute goal on project flume-ng-morphline-solr-sink: Could not resolve depende

Windows编译Flume源码时报以下错误:

[ERROR] Failed to execute goal on project flume-ng-morphline-solr-sink: Could not resolve dependencies for project org.apache.flume.flume-ng-sinks:flume-ng-morphline-solr-sink:jar:1.7.0: Failed to collect dependencies at org.kitesdk:kite-morphlines-all:pom:1.0.0 -> org.kitesdk:kite-morphlines-useragent:jar:1.0.0 -> ua_parser:ua-parser:jar:1.3.0: Failed to read artifact descriptor for ua_parser:ua-parser:jar:1.3.0: Could not transfer artifact ua_parser:ua-parser:pom:1.3.0 from/to maven-twttr (http://maven.twttr.com): Connect to maven.twttr.com:80 [maven.twttr.com/69.63.186.30] failed: Connection timed out: connect -> [Help 1]

解决方法:在 D:\flume\flume-1.7.0\flume-ng-sinks文件下,将pom.xml文件中的flume-ng-morphline-solr-sink注释掉

  <modules>
    <module>flume-hdfs-sinkmodule>
    <module>flume-irc-sinkmodule>
    <module>flume-ng-hbase-sinkmodule>
    <module>flume-ng-elasticsearch-sinkmodule>
   
    <module>flume-ng-kafka-sinkmodule>
  modules>

重新编译即可成功!

你可能感兴趣的:(Flume)