一、storm集群整体部署
集群总共使用了6台机器:
storm使用3个节点(nimbus在node01, supervisor在node02、node03)
zookeeper使用3个节点(node04、node05、node06)
二、zookeeper安装
1、使用最新的稳定版本3.4.6,下载地址 http://mirror.bit.edu.cn/apache/zookeeper/stable/zookeeper-3.4.6.tar.gz
tar zxvf zookeeper-3.4.6.tar.gz ln -s zookeeper-3.4.6 zookeeper rm zookeeper-3.4.6.tar.gz cp zookeeper/conf/zoo_sample.cfg zookeeper/conf/zoo.cf
2、修改配置文件zoo.cfg , 根据自己的实际情况修改红色部分即可,其余配置可以使用默认的。
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp