first, the installation starts Zookeeper
Why does ZK use 3.4.5 because it supports snapshots of disks and periodic deletions of namenode, avoiding disk full
Configuration:
# The number of milliseconds of tick ticktime=2000 # The number of
ticks that initial synchronization pha SE can take
initlimit=10 # The number of
ticks that can pass between sending a request and getting a Acknowledgem ent
synclimit=5
# The directory where the snapshot is stored.
# do not use/tmp for storage,/tmp Here is just example sakes.
Datadir=/zookeepertest/data
autopurge.purgeinterval=1
# The port at which the clients'll connect
clientport=2181
server.1=test:2888:3888
server.2=test1:2888:3888
server.3=test2:2888:388
Datadi
ZK, all the data is written under DataDir autopurge.purgeinterval
Autopurge.purgeinterval=1 What does that mean, every hour, it cleans up the data in the DataDir, because ZK produces snapshot and Binlog, which is very fast and will fill up the disk in a few days, We clean up one hour at a time to effectively avoid this problem, clean up the rule is clean up when it will keep the latest 3 files, of course, this 3 is also configurable server.1=test:2888:3888
Number of Server.x x set in myID
Storm Cluster
Second, install Storm
Download, unzip the configuration file for the 2.1 configuration Storm Storm.yaml
Cd/usr/local/storm/conf
VI Storm.yaml
Modify the following: Add cluster, set master node
distribute to each node
SCP III, start Storm 3.1, start Nimbus
Start Nimbus on the primary node
Cd/usr/local/storm
mkdir Logs
3.2 Starting UI
Cd/usr/local/storm
./bin/storm UI >> Logs/ui.out 2>&1 &
3.3 Start Logviewer
Boot on port 8000.
Cd/usr/local/storm
./bin/storm logviewer >> logs/logviewer 2>&1 &
3.4, start Superviour
Start supervisor at each node
Cd/usr/local/storm
3.5 Verify Open Browser
http://test:8080
3.6 Submit Topology
Cd/usr/local/storm
./bin/storm jar Examples/storm-starter/storm-startertopologies-0.9.4.jar Storm.starter.WordCountTopology WordCount