1. Download Storm's installation files
Http://www.apache.org/dyn/closer.cgi/incubator/storm/apache-storm-0.9.2-incubating/apache-storm-0.9.2-incubating.tar.gz
1 tar-zxvf apache-storm-0.9.2-incubating.tar.gz
2. Modify the storm's configuration file Conf/storm.yaml
1 storm.zookeeper.servers:2-"localhost"3#-"Server2"4 # 5Nimbus.host: "localhost"6 # 7 # 8 9 # storm Local dirTenStorm.local.dir: "/home/zhaofuxin/data/storm/work_dir" One A # Storm Web Manager UI Port -ui.port:8088 - the # - Supervisor.slots.ports: --6700 --6701 +-6702 --6703
When configuring, be sure to add a space at the beginning of each entry, and you must also add a space after the colon, or storm will not recognize the configuration file.
Description of each configuration item:
Storm.local.dir indicates the local directory that storm needs to use
Nimbus.host says that machine is the master machine.
Storm.zookeeper.servers indicates which machines are zookeeper servers
Storm.zookeeper.port represents the port number of the zookeeper, which must be the same as the port number configured by the zookeeper, otherwise there will be a communication error
Supervisor.slots.ports indicates the number of slots for the supervisor node
The Nimbus server is set up on Node1 and each creates a corresponding Workdir folder. Ui.port changed here to 8088, the default is 8080, in order to avoid conflicts with other Web services. Supervisor.slots.ports: For each Supervisor worker node, you need to configure the number of workers that the worker node can run. Each worker occupies a separate port for receiving messages, and the configuration option is used to define which ports are available for use by the worker. By default, 4 workers can be run on each node, at 6700, 6701, 6702, and 6703 ports, respectively
3. Start Storm.
Nimbus: Run on the Storm Master node (Node1), start the Nimbus daemon, and put it in the background (respectively exception redirect to null, hehe);
[Plain]View Plaincopy
- Bin/storm Nimbus >/dev/null 2>&1 &
Supervisor: Run on the Storm each work node (NODE1,NODE2), start the Supervisor daemon, and put it in the background to execute;
[Plain]View Plaincopy
- Bin/storm Supervisor >/dev/null 2>&1 &
UI: Run on the Storm Master node (Node1), launch the UI daemon, and put it in the background.
[Plain]View Plaincopy
- Bin/storm UI >/dev/null 2>&1 &
After the UI is started, you can view information such as worker resource usage, topologies's health status, and so on, through http://node1:8088.
Ubuntu14.04lts Storm stand-alone installation configuration