you need to install Storm's dependencies on Nimbus and the worker machines. These are:html
- Java 7+ (Apache Storm 1.x is tested through travis ci against both java 7 and java 8 JDKs)
- Python 2.6.6 (Python 3.x should work too, but is not tested as part of our CI enviornment)
按照官方文檔 的說明:storm 運行依賴於 Java 7+ 和 Python 2.6.6 +,因此須要預先安裝這兩個軟件。因爲這兩個軟件在多個框架中都有依賴,其安裝步驟單獨整理至 :java
Linux 環境下 Python 安裝github
下載並解壓,官方下載地址:http://storm.apache.org/downloads.htmlshell
# tar -zxvf apache-storm-1.2.2.tar.gz
# vim /etc/profile
添加環境變量:apache
export STORM_HOME=/usr/app/apache-storm-1.2.2 export PATH=$STORM_HOME/bin:$PATH
使得配置的環境變量生效:vim
# source /etc/profile
由於要啓動多個進程,因此統一採用後臺進程的方式啓動。進入到 ${STORM_HOME}/bin
目錄下,依次執行下面的命令:app
# 啓動zookeeper nohup sh storm dev-zookeeper & # 啓動主節點 nimbus nohup sh storm nimbus & # 啓動從節點 supervisor nohup sh storm supervisor & # 啓動UI界面 ui nohup sh storm ui & # 啓動日誌查看服務 logviewer nohup sh storm logviewer &
驗證方式一:jps 查看進程:框架
[root@hadoop001 app]# jps 1074 nimbus 1283 Supervisor 620 dev_zookeeper 1485 core 9630 logviewer
驗證方式二: 訪問 8080 端口,查看 Web-UI 界面:oop
更多大數據系列文章能夠參見 GitHub 開源項目: 大數據入門指南