I. Environment
Three virtual machines with centos and zookeeper version 3.4.3
The IP address and hostname are 192.168.41.100/master, 192.168.41.101/slave1, 192.168.41.102/slave2, respectively.
Ii. Installation
1. decompress the downloaded apache-storm-0.9.2-incubating.zip
# tar zvxf apache-storm-0.9.2-incubating.tar.gz -C /home/hadoop/
2. Edit the storm. yaml configuration file.
Modify as follows:
### ldirstorm.local.dir: "/home/hadoop/storm-0.9.2-incubating/ldir"### zookeeperstorm.zookeeper.servers: - "master" - "slave1" - "slave2"### nimbus hostnimbus.host: "master"### ui.* configs are for the masterui.port: 8081
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/49/1C/wKiom1QPKUTDFjH2AADz8Ad_zUM520.jpg "Title =" 1.png" alt = "wkiom1qpkutdfjh2aadz8ad_zum5w.jpg"/>
3. Copy the storm directory under the master to another sending server.
# scp -r /home/hadoop/apache-storm-0.9.2-incubating [email protected]:/home/hadoop# scp -r /home/hadoop/apache-storm-0.9.2-incubating [email protected]:/home/hadoop
4. Start zookeeper of each node
# bin/zkServer.sh start
5. Start Nimbus on the master
# storm nimbus &
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/49/1E/wKioL1QPKlPiDi1sAAc74VQTsBc620.jpg "Title =" 2.png" alt = "wkiol1qpklpidi1saac74vqtsbc620.jpg"/>
6. Start supervisor on slave1 and slave2
# storm supervisor &
Slave1:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/49/1C/wKiom1QPKp-CV1oQAAO7h7dJ9Yw164.jpg "Title =" 3.png" alt = "wKiom1QPKp-CV1oQAAO7h7dJ9Yw164.jpg"/>
Slave2:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/49/1E/wKioL1QPKuahDsHeAAZrGj5x4VU793.jpg "Title =" 4.png" alt = "wkiol1qpkuahdsheaazrgj5x4vu793.jpg"/>
7. Start storm UI on the master
# storm ui &
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/49/1C/wKiom1QPKzbQ68jVAAd8vW9y34Y496.jpg "Title =" 5.png" alt = "wkiom1qpkzbq68jvaad8vw9y34y496.jpg"/>
Iii. Verification
1. Open http: // master: 8081/index.html in the browser and you can see the following interface:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/49/1E/wKioL1QPK7ahivz3AAMRQZnWHI0068.jpg "Title =" 6.png" alt = "wkiol1qpk7ahivz3aamrqznwhi0068.jpg"/>
2. Check whether the storm directory exists in zookeeper. We can see that zookeeper has managed storm.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/49/1E/wKioL1QPLUvSyIi7AAYAXzUiQgw679.jpg "Title =" 7.png" alt = "wkiol1qpluvsyii7aayaxzuiqgw679.jpg"/>
This article is from the "xlows" blog, please be sure to keep this source http://xlows.blog.51cto.com/5380484/1550379
Building a storm distributed Cluster