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

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

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

1 下载源码apache

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

或者maven

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

请本身下载源码包,解压缩后,放入eclipse工程函数

当前分析版本 1.6.0ui

=====================================url

2尝试编译.net

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

相关文章
相关标签/搜索