twitter storm笔记

来源:互联网 发布:let it go let it be 编辑:程序博客网 时间:2024/06/11 13:06

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

后续更新中

原创粉丝点击