1. Build a Zookeeper cluster;
Reference: https://blog.csdn.net/weixin_36104843/article/details/80211404
3. Download and unzip the Storm release version;
wget http://mirrors.shu.edu.cn/apache/storm/apache-storm-1.2.1/apache-storm-1.2.1.tar.gz
tar -zxf apache-storm-1.2.1.tar.gz
mv apache-storm-1.2.1 /usr/local/storm
Configure environment variables
export STORM_HOME=/usr/local/storm
export PATH=$STORM_HOME/bin:$PATH
4. Modify the storm.yaml configuration file;
storm.zookeeper.servers:
- "master01"
- "master02"
- "slaver01"
- "slaver02"
nimbus.host: ["master01","master02"]
storm.local.dir: "/usr/local/storm/tmp"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
#Modify the port of the UI to prevent it from being occupied
ui.port:80815. Start each background process of Storm.
start the nimbus node
storm nimbus >/dev/null 2>&1 &
Start the supervisor node
storm supervisor >/dev/null 2>&1 &
Start the background process of storm's storm ui
storm ui >/dev/null 2>&1 &
Reference: https://www.cnblogs.com/zplogo/p/8370590.html
https://blog.csdn.net/bbaiggey/article/details/77017230