1.安装jdk参考博客:http://blog.csdn.net/qq_35192224/article/details/79354968
2.安装python2.8以上建议安装python3 参考博客:http://blog.csdn.net/qq_35192224/article/details/79355149
3.安装zookeeper 参考博客:http://blog.csdn.net/qq_35192224/article/details/79355665
4.安装
tar -zxf apache-storm-0.9.5.tar.gz $ cd apache-storm-0.9.5 $ mkdir data
5.修改配置文件
当前版本的Storm在“conf / storm.yaml”中包含一个配置Storm守护程序的文件。将以下信息添加到该文件。
$ vi conf/storm.yaml storm.zookeeper.servers: - "localhost" storm.local.dir: “/path/to/storm/data(any path)” nimbus.host: "localhost" supervisor.slots.ports: - 6700 - 6701 - 6702 - 6703
应用所有更改后,保存并返回到终端。
6.测试
启动Nimbus
$ bin/storm nimbus
启动Supervisor
$ bin/storm supervisor
启动UI
$ bin/storm ui
访问 http://localhost:8080/index.html
注意:1.关闭防火墙
2.xshell 开启nimbus 可能会造成卡着无法输入命令 另外打开一个连接 如果 按ctrl+c 会结束改进程导致storm启动失败