1. Download storm and related components, including:
Storm Pack: https://storm.apache.org/downloads.html
ZEROMQ Bag: Http://zeromq.org/area:download
JZMQ Bag: HTTPS://GITHUB.COM/NATHANMARZ/JZMQ
2. Install dependent packages
1, install ZEROMQ Pack and JZMQ pack
General steps:
./configure
Make
Make install
The default configure prefix--prefix=/usr/local
2, Problem collection
1) GCC not installed:
Configure:error:no acceptable C compiler found in $PATH
Workaround: Yum Install gcc
2) GCC related packet conflict
glibc-common-2.12-1.80.el6.i686 (installed) REQUIRES:GLIBC = 2.12-1.80.el6
Workaround: Yum list glibc
Yum Remove glibc.i686
Yum Install GCC
3) C + + compiler not installed
Configure:error:Unable to find a working C + + compiler
Workaround: Yum Install gcc-c++
4) Libsodium not installed
No package ' libsodium ' found
Workaround: Download and install Libsodium:
https://download.libsodium.org/libsodium/releases/
5) Libsodium not found
No package ' libsodium ' found
WORKAROUND: Set Environment variables: Export Pkg_config_path=/usr/local/lib/pkgconfig
3. Configure Storm
Add in Conf/storm.yaml:
Storm.zookeeper.servers:-"XHADOOP1"-"XHADOOP2"-"XHADOOP3" Storm.local.dir: "/root/home/storm_work" Nimbus. Host: "XHadoop1" Supervisor.slots.ports:-6700-6701-6702-6703
First parameter: All node servers where the zookeeper is located
Second parameter: Local path, must be created manually
Third parameter: Specify a master node
Fourth parameter: Specify the slave node of the working port
Where the first parameter and the fourth parameter is an array type, need to write a branch, the other two is the string type cannot be written in line, and the colon after the need for a space, otherwise error
4. Running the program
Master node: Bin/storm nimbus >/dev/null 2>&1 &
From node: Bin/storm supervisor >/dev/null 2>&1 &
Master Node Management: Bin/storm UI >/dev/null 2>&1 &
Administration page: Master node: 8080
This article is from the "zero-based" blog, so be sure to keep this source http://loverofvenus.blog.51cto.com/2766338/1670583
Storm Installation and Configuration