1,上传storm包(node0002)
cd /software 上传apache-storm-0.10.0.tar.gz
tar xf apache-storm-0.10.0.tar.gz -C /opt/sxt/ 解压
vi + /etc/profile (配置环境变量)
export STORM_HOME=/opt/sxt/apache-storm-0.10.0
:$STORM_HOME/bin
. /etc/profile
storm (展示所有角色)
mkdir logs 当前目录创建日志文件夹
2,下面分别启动ZooKeeper、Nimbus、UI、supervisor、logviewer
storm dev-zookeeper >> ./logs/zk.out 2>&1 & 错误输出到指定文件
storm nimbus >> ./logs/nimbus.out 2>&1 &
storm supervisor >> ./logs/supervisor.out 2>&1 &
storm ui >> ./logs/ui.out 2>&1 &
storm logviewer >> ./logs/logviewer.out 2>&1 &
需要等一会儿
jps
6966 Jps
6684 logviewer
6680 dev_zookeeper
6681 nimbus
6682 core
6683 supervisor
http://node01:8080