twitter storm筆記

來源:互聯網
上載者:User

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

後續更新中

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.