1.启动nimbus,进程名为nimbus
nohup storm nimbus &
2.启动supervisor,进程名为supervisor
nohup storm supervisor &
3.启动ui,进程名为core
nohup storm ui &
4.启动log
nohup storm logviewer &
5.上传topo
storm jar storm_topo.jar com.cjun.MainTopology myTopo
storm_topo.jar:项目的jar包
com.cjun.MainTopology:主类的路径
myTopo:此topo在storm ui中显示的名称
6.杀死storm进程
先用jps查看storm进程,然后用:kill -9 x,杀死对应的进程,x为对应进程的进程号。
7.storm/jstorm杀死topo
storm/jstorm kill count
count为topo的名字
8.查看storm集群状况,浏览器输入网址:http://nimbus:8080