storm徹底分佈式安裝

  1. 節點 nimbus supervisor ZK
    slave1 1 0 1
    slave2 0 1 1
    slave3 0 1 1
  2. 解壓,建立目錄/opt/storm/
  3. 修改conf/storm.yaml
    storm.zookeeper.servers:
      - "slave1"
      - "slave2"
      - "slave3"
    
    storm.local.dir: "/root/storm"
    
    nimbus.host: "slave1"
    
    supervisor.slots.ports:
      - 6700
      - 6701
      - 6702
      - 6703
  4. 分發到其餘節點
    scp -r storm0.10.2 slave2:/opt/storm/
  5. 配置環境變量
    export STORM_HOME=/opt/storm/storm0.10.1
  6. 啓動ZooKeeper集羣
    每一個節點運行zkServer.sh start
    
    在安裝目錄下建立日誌目錄 mkdir logs slave1上啓動Nimbus,web監控模塊 $ storm nimbus >> ./logs/nimbus.out 2>&1 & $ tail -f logs/nimbus.out $ storm ui >> ./logs/ui.out 2>&1 & $ tail -f logs/ui.out
    節點slave2和slave3啓動supervisor,按照配置,每啓動一個supervisor就有了4個slots $ storm supervisor >> ./logs/supervisor.out 2>&1 & $ tail -f logs/supervisor.out (固然node1也能夠啓動supervisor)
    http://slave1:8080/,能夠看到storm集羣的信息和拓撲信息
相關文章
相關標籤/搜索