Install Storm0.9.2 single-host in CentOS6.4

Source: Internet
Author: User

Install Storm0.9.2 single-host in CentOS6.4

Reference blog: Storm0.9-single (http://www.cnblogs.com/really-dt/p/3775663.html), thanks.

0. Install the dependency package

[Plain] view plaincopy
  1. Yuminstalluuid *
  2. Yuminstalllibtool
  3. Yuminstalllibuuid
  4. Yuminstalllibuuid-devel

Otherwise, an error is prompted during the installation process.

1. Install zeromq

Download the latest zeromq-4.0.4.tar.gzfrom http://download.zeromq.org.

[Plain] view plaincopy
  1. Tar-zxvfzeromq-4.0.4.tar.gz
  2. Cdzeromq-4.0.4
  3. ./Configure
  4. Make
  5. Makeinstall

2. Install jzmq

[Plain] view plaincopy
  1. Gitclonegit: // github.com/nathanmarz/jzmq.git
  2. Cdjzmq/
  3. ./Autogen. sh
  4. ./Configure
  5. Make
  6. Makeinstall

3. Install zookeeper

Slave.

[Plain] view plaincopy
  1. Tar-zxvfzookeeper-3.4.6.tar.gz
  2. Sudocpzookeeper-3.4.6/usr/local/
  3. Vim ~ /. Bashrc
  4. ExportZOOKEEPER_HOME =/usr/local/zookeeper-3.4.6
  5. ExportPATH = $ PATH: $ ZOOKEEPER_HOME/bin
  6. Source ~ /. Bashrc <spanstyle = "font-size: 14px;"> <strong>
  7. </Strong> </span>

 

4. install storm

From region.

[Plain] view plaincopy
  1. Tar-zxvfapache-storm-0.9.2-incubating.tar.gz
  2. Sudocpapache-storm-0.9.2-incubating/usr/local/
  3. Vim ~ /. Bashrc
  4. ExportSTORM_HOME =/usr/local/apache-storm-0.9.2-incubating
  5. ExportPATH = $ PATH: $ STORM_HOME/bin
  6. Source ~ /. Bashrc
Configure storm again:

[Plain] view plaincopy
  1. Vim./conf/storm. yaml)

File Content
[Plain] view plaincopy
  1. Storm. zookeeper. servers:
  2. -"Localhost"
  3. Storm. zookeeper. port: 2181
  4. Nimbus. host: "localhost"
  5. Storm. local. dir: "/usr/local/apache-storm-0.9.2-incubating/tmp"
  6. Supervisor. slots. ports:
  7. -6700
  8. -6701
  9. -6702
If the tmp folder in storm. local. dir does not exist, create it by yourself.

5. Test Cases

Obtain the storm-starter test code from github.

[Plain] view plaincopy
  1. Gitclonehttps: // github.com/nathanmarz/storm-starter.git
  2. Cdstorm-starter/
  3. Mvn-fm2-pom.xmlpackage (maven installation required)
Start the service in sequence as follows:

Start zookeeper (under the zookeeper/bin directory ). An error may occur at startup: The zookeeper-3.4.6/bin/../conf/zoo. cfg file does not exist, directly mv zoo_sample.cfg zoo. cfg.

[Plain] view plaincopy
  1. ./ZkServer. shstart

Start storm

[Plain] view plaincopy
  1. Stormnimbus
  2. Stormsupervisor
  3. Stormui

Submit Topology (under the storm-starter directory)

[Submit Topology without the Topology name, which will not be submitted to nimbus for Running]

[Plain] view plaincopy
  1. Stormjartarget/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jarstorm.starter.WordCountTopology

[Submit Topology]

[Plain] view plaincopy
  1. Stormjar ../storm-starter/target/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jarstorm.starter.WordCountTopologymyFirstStormApp.

Now you can view http: // localhost: 8080/on the Web interface/

Storm list to view the currently running Topology

You can view log files in the logs directory under the storm directory, includingnimbus.log,supervisor.log, Worker. log.

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.