storm安裝配置

xiaohei.info發表於2015-04-06
版權宣告:本文為博主原創文章,未經博主允許不得轉載。 https://blog.csdn.net/qq1010885678/article/details/44902601

1.修改主機名:
vim /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=MASTER

2.修改IP:

先用ifconfig得到ip資訊,將其複製

設定ip地址為靜態

vim /etc/sysconfig/network-scripts/ifcfg-eth0

BOOTPROTO=”static”

HWADDR=”00:0C:29:FC:62:B6″

IPV6INIT=”yes”

NM_CONTROLLED=”yes”

ONBOOT=”yes”

TYPE=”Ethernet”

UUID=”d0731a46-36df-4ab1-9bac-42bb151acc41″

IPADDR=”192.168.1.250″

NETMASK=”255.255.255.0″

GATEWAY=”192.168.1.1″

DNS1=”8.8.8.8″

DNS2=”8.8.4.4″

3.修改主機和IP的對映關係
vim /etc/hosts

4.關閉防火牆

5.上傳安裝jdk,配置環境變數

上傳
zeromq-2.1.7.tar.gz
jzmq-master.zip
storm-0.8.2.zip
zookeeper-3.4.5.tar.gz
等檔案

1.編譯安裝ZMQ:

tar -xzf zeromq-2.1.7.tar.gz

cd zeromq-2.1.7

./configure

#編譯可能會出錯:configure: error: Unable to find a working C++ compiler

#安裝一下依賴的rpm包(在vm虛擬機器中載入安裝的cd盤檔案,裡面的services資料夾有所有的包):
libstdc++-devel
gcc-c++
libuuid-devel

./configure

make 
make install

2.編譯安裝JZMQ:
cd jzmq

./autogen.sh

#報錯:autogen.sh: error: could not find libtool. libtool is required to run autogen.sh. 
缺少libtool
yum install libtool

或者手動安裝

autoconf-2.63-5.1.el6.noarch.rpm 

automake-1.11.1-4.el6.noarch.rpm 

libtool-2.2.6-15.5.el6.x86_64.rpm

./configure

make

make install

3.安裝啟動zookeeper

4.上傳解壓storm
進入conf目錄
修改storm.yaml 

#zookeeper的節點
storm.zookeeper.servers:
     – “cloud4”
     – “cloud5”
     – “cloud6”
#nimbus主節點
nimbus.host: “cloud4”

啟動nimbus

輸出日誌到null下

在後臺執行

./storm nimbus > ../dev/null 2>&1 &


相關文章