要想知道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