V. Example
这是storm安装包里提供的example,路径apache-storm-0.9.3\examples\storm-starter\src\jvm\storm\starter,提交一个topology命名为wordcountexample。
# ./storm jar /home/slimttyagent/
storm-starter-topologies-0.9.3.jar storm/starter/WordCountTopology wordcountexample519 [main] INFO backtype.storm.StormSubmitter - Jar not uploaded to master yet. Submitting jar...
525 [main] INFO backtype.storm.StormSubmitter - Uploading topology jar /home/slimttyagent/storm-starter-topologies-0.9.3.jar to assigned location: /var/storm/nimbus/inbox/stormjar-d8c7a8d9-3e76-444f-b86b-b0e5a45b99da.jar
Start uploading file '/home/slimttyagent/storm-starter-topologies-0.9.3.jar' to '/var/storm/nimbus/inbox/stormjar-d8c7a8d9-3e76-444f-b86b-b0e5a45b99da.jar' (3248859 bytes)
[==================================================] 3248859 / 3248859
File '/home/slimttyagent/storm-starter-topologies-0.9.3.jar' uploaded to '/var/storm/nimbus/inbox/stormjar-d8c7a8d9-3e76-444f-b86b-b0e5a45b99da.jar' (3248859 bytes)
557 [main] INFO backtype.storm.StormSubmitter - Successfully uploaded topology jar to assigned location: /var/storm/nimbus/inbox/stormjar-d8c7a8d9-3e76-444f-b86b-b0e5a45b99da.jar
558 [main] INFO backtype.storm.StormSubmitter - Submitting topology wordcountexample in distributed mode with conf {"topology.workers":3,"topology.debug":true}
737 [main] INFO backtype.storm.StormSubmitter - Finished submitting topology: wordcountexample