Ubuntu14.04lts Storm stand-alone installation configuration

Source: Internet
Author: User
Tags zookeeper

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
    1. 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
    1. 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
    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.