首先安装zk
wget http://apache.mirrors.spacedump.net/zookeeper/current/zookeeper-3.4.6.tar.gz (or the appropriate version)
tar -xvf zookeeper-3.4.6.tar.gz
cd zookeeper/
cd conf
cp zoo_sample.cfg zoo.cfg
cd bin
./zkServer.sh start
cd storm/bin
./storm nimbus &
./storm supervisor &
./storm ui &
打开127.0.0.1:8080, 可以看到Storm UI
如果出现
org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts [localhost]. Did you specify a valid list of nimbus hosts for config nimbus.seeds?
看一下zookeeper有没有异常
阅读(1569) | 评论(0) | 转发(0) |