要想知道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,複製進去便可。