wordcount
1. 创建maven 项目
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF8</encoding>
</configuration>
</plugin>2. 引入依赖
<dependency>
<groupId>org.apache.storm</groupId>
<artifactId>storm-core</artifactId>
<version>0.9.6</version>
<scope>provided</scope>
<!-- 如果本地调试模块 ,必须选用 compile,如果提交到生产环境使用provided-->
</dependency>3. 编写topology
3.1 编写入口类
3.2 实现spout
3.3 实现blot
4. 打包jar
5. 本地调试
6. 提交topology到集群
7. 查看任务和查看日志
8. 停止top
9. 更多
Last updated