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 &
storm集群安裝配置
1.安裝jdk 略2.安裝zookeeper集群 flux04,flux05,flux06 略3.安裝storm flux07,flux08,flux09 解壓安裝包即可 4.配置storm 修改 storm home conf目錄下的storm.yaml檔案。1 storm.zookeeper.s...
storm集群安裝配置
1 首先安裝zookeeper集群 2 安裝storm tar zxvf apache storm 1.2.2.tar.gz c usr local sudo mv apache storm 1.2.2 storm3 更改conf目錄下storm.yarml配置檔案 sudo vi storm.ya...
storm的安裝配置
前提,在使用者centos下,soft資料夾的建立 sudo mkdir soft chown r centos centos soft 1 集群規劃 在s101 s102 s103和s104四個節點上部署storm 2.解壓安裝 1 解壓zookeeper安裝包到 soft目錄下 tar zxvf...