Flume-1.6.0 源码分析0:环境准备

有些话、适合烂在心里 提交于 2019-11-29 05:36:26

要想知道flume,请看http://www.oschina.net/p/apache+flume

官方文档: http://flume.apache.org/FlumeUserGuide.html

1 下载源码

http://flume.apache.org/download.html

或者

http://archive.apache.org/dist/flume/

请自己下载源码包,解压缩后,放入eclipse工程

当前分析版本 1.6.0

=====================================

2尝试编译

mvn compile

出现无法从maven.twttr.com下载jar包的情况

解决方案:在pom.xml里加入

<repository>
      <id>maven.tempo-db.com</id>
      <url>http://maven.oschina.net/service/local/repositories/sonatype-public-grid/content/</url>
</repository>

顺利编译完毕!

 http://www.iteblog.com/archives/1043

 

3 引入到Eclipse工程

 

剩下就可以编写自己的main函数了!

 

使用参考:

https://cwiki.apache.org/confluence/display/FLUME/Getting+Started#GettingStarted-flume-ngglobaloptions --- 里面有参数说明

https://cwiki.apache.org/confluence/display/FLUME/Getting+Started#GettingStarted-BuildingFromSource

 

错误解决:

1 flume-ng-sdk有源码问题,找不到类,实际上是有一些类是generated,复制进去即可。

2 http://my.oschina.net/frankwu/blog/332873

3 http://blog.csdn.net/tanxiang21/article/details/20537667

 

 

 

 

 

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!