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

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

142124_2YM7_1382024.png

 

剩下就可以编写自己的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

 

 

 

 

 

 

 

转载于:https://my.oschina.net/qiangzigege/blog/522585

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值