Storm 學習筆記
準備
1.瞭解git 的最基本的使用方法,因為storm的案例和源碼都是用git進行管理的。
2.瞭解maven的使用方法,因為工程中會使用很多的jar包,管理起來比較麻煩。
maven地址:http://maven.apache.org/index.html
開始
本地安裝,下載最新的storm.地址:http://storm-project.net/downloads.html
下載storm-starter,並匯入eclipse中
使用git命令把storm-starter項目clone到本地:git clone https://github.com/nathanmarz/storm-starter.git
修改工程中的m2-pom.xml檔案名稱為pom.xml 。maven 只能識別pom.xml
進入項目目錄,使用maven下載相關jar
maven命令清理安裝jar包到本地倉庫:mvn clean install
注釋被牆的jar
<!-- <repository><id>twitter4j</id><url>http://twitter4j.org/maven2</url></repository> --><!-- <dependency><groupId>org.twitter4j</groupId><artifactId>twitter4j-core</artifactId><version>2.2.6-SNAPSHOT</version></dependency><dependency><groupId>org.twitter4j</groupId><artifactId>twitter4j-stream</artifactId><version>2.2.6-SNAPSHOT</version></dependency> -->
<!-- <plugin><groupId>com.theoryinpractise</groupId><artifactId>clojure-maven-plugin</artifactId><version>1.3.8</version><extensions>true</extensions><configuration><sourceDirectories><sourceDirectory>src/clj</sourceDirectory></sourceDirectories></configuration><executions><execution><id>compile</id><phase>compile</phase><goals><goal>compile</goal></goals></execution><execution><id>test</id><phase>test</phase><goals><goal>test</goal></goals></execution></executions></plugin> -->
理解
1.map/reduce
http://blog.csdn.net/opennaive/article/details/7514146
http://www.csdn.net/article/2013-01-07/2813477-confused-about-mapreduce
後續更新中