寫(xiě)下搭建測(cè)試用的storm環(huán)境步驟:
創(chuàng)新互聯(lián)是一家集網(wǎng)站建設(shè),福鼎企業(yè)網(wǎng)站建設(shè),福鼎品牌網(wǎng)站建設(shè),網(wǎng)站定制,福鼎網(wǎng)站建設(shè)報(bào)價(jià),網(wǎng)絡(luò)營(yíng)銷(xiāo),網(wǎng)絡(luò)優(yōu)化,福鼎網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強(qiáng)企業(yè)競(jìng)爭(zhēng)力??沙浞譂M足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時(shí)我們時(shí)刻保持專(zhuān)業(yè)、時(shí)尚、前沿,時(shí)刻以成就客戶(hù)成長(zhǎng)自我,堅(jiān)持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實(shí)用型網(wǎng)站。
一、系統(tǒng)
Redhat6.5_x86
二、所需軟件包
jdk-7u67-linux-x64.tar.gz
jzmq-master.zip
storm-0.7.1.zip
zeromq-2.1.7.zip
zookeeper-3.3.5.tar.gz
三、搭建步驟(默認(rèn)的python2.6.6):
1、jdk的安裝
tar zxf jdk-7u67-linux-x64.tar.gz -C /usr/local/services
cd /usr/local/services
ln -sf jdk1.7.0_67 jdk
vim /etc/profile
export JAVA_HOME=/usr/local/services/jdk
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
source /etc/profile
java測(cè)試一下jdk是否安裝OK
2、zookeeper的安裝
tar zxf zookeeper-3.3.5.tar.gz -C /usr/local/services/
cd /usr/local/services
ln -sf zookeeper-3.3.5 zookeeper
vim /etc/profile
export ZOOKEEPER_HOME=/usr/local/services/zookeeper
export PATH=$PATH:$ZOOKEEPER_HOME/bin
cp conf/zoo_sample.cfg conf/zoo.cfg
vim conf/zoo.cfg
dataDir=/usr/local/services/zookeeper/data
dataLogDir=/usr/local/services/zookeeper/log
vim bin/zkEnv.sh
ZOO_LOG_DIR="/usr/local/services/zookeeper/log"
./bin/zkServer.sh start 啟動(dòng)zookeeper
./bin/zkServer.sh status 查看zookeeper的狀態(tài)
3、storm的安裝
在安裝storm之前,先安裝storm依賴(lài)的包jzmq-master.zip,zeromq-2.1.7.zip
storm的依賴(lài)包是依賴(lài)這幾個(gè)工具,為了避免報(bào)錯(cuò),可以先裝上
yum -y install gcc* e2fsprogs* libuuid* libtool*
unzip zeromq-2.1.7.zip
cd zeromq-2.1.7
./configure --prefix=/usr/local/services/
make&&make install
ldconfig -v
unzip jzmq-master.zip
cd jzmq-master.zip
./autogen.sh
./configure --prefix=/usr/local/services/ --with-zeromq=PREFIX
make&&make install
unzip storm-0.7.1.zip
mv storm-0.7.1 /usr/local/services/storm-0.7.1
ln -sf storm-0.7.1 storm
vim /etc/profile
export STORM_HOME=/usr/local/services/storm
export PATH=$PATH:$STORM_HOME/bin
source /etc/profile
vim conf/storm.yaml
nimbus.host: "localhost"
storm.local.dir: "/usr/local/services/storm/data"
storm.zookeeper.servers:
- "localhost"
storm.zookeeper.port: 2181
vim log4j/storm.log.properties
log4j.appender.A1.File = /usr/local/services/storm/logs/${logfile.name}
啟動(dòng)storm
storm nimbus&
storm supervisor&
storm ui&
jps查看下?tīng)顟B(tài)