?
一、安裝Zookeeper
??? 1、設置.profile文件:
export ZOOKEEPER_HOME=/home/hadoop/streamdata/zookeeper-3.4.5-cdh4.5.0
export PATH=$PATH:$ZOOKEEPER_HOME/bin
??? 2、設置zoo.cfg文件:
    
      tickTime=2000
dataDir=/home/hadoop/streamdata/data/zookeeper/
clientPort=2181
initLimit=5
syncLimit=2
server.1=kit-bg1:2888:3888
server.2=kit-bg2:2888:3888
server.3=kit-bg3:2888:3888
    
  
  
    
          3、設置myid文件。分別在各機器的dataDir指定的目錄下,創建myid文件,kit-bg1上內容為"1",kit-bg2內容為"2",kit-bg3內容為"3"。
    
  
  
    
          4、命令:
    
  
  zkServer.sh start???? 需在各機分別執行
zkServer.sh status
zkServer.sh stop
zkCli.sh?? 客戶端測試
二、安裝zeromq-2.1.7
??? 下載解壓縮后,執行:
    
      cd zeromq-2.1.7
./configure
make
su 
      
      make install
    
  
  
      問題:
  
  錯誤: configure: error: no acceptable C compiler found in $PATH
解決:yum -y install gcc
?
錯誤: configure: error: Unable to find a working C++ compiler
解決:yum -y install gcc-c++
?
錯誤:configure: error: cannot link with -luuid, install uuid-dev.
解決:yum -y install *uuid-devel*
三、安裝jzmq
??? 從 https://github.com/nathanmarz/jzmq 下載源碼,執行:
    
      cd jzmq
./autogen.sh
./configure
make
su
      
      make install
    
  
  ??? 問題:
錯誤:autogen.sh: error: could not find libtool.? libtool is required to run autogen.sh.
解決:yum -y install libtool
四、安裝storm
??? 設置.profile文件:
export STORM_HOME=/home/hadoop/streamdata/apache-storm-0.9.1-incubating
export PATH=$PATH:$STORM_HOME/bin
??? 配置storm.yaml文件:
storm.zookeeper.servers:
? - "kit-bg1"
? - "kit-bg2"
? - "kit-bg3"storm.local.dir: "/home/hadoop/streamdata/data/storm"
nimbus.host: "kit-bg1"
ui.port: 18080
supervisor.slots.ports:
??? - 6700
??? - 6701
??? - 6702
??? - 6703
??? 啟動服務:
storm nimbus&???????
storm supervisor&
storm ui&
??? storm nimbus&命令僅需master上執行。
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061
					微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
					
