看這裏!Storm【單機版】環境搭建

Storm單機版本環境搭建

1. 安裝環境要求

you need to install Storm's dependencies on Nimbus and the worker machines. These are:html

  1. Java 7+ (Apache Storm 1.x is tested through travis ci against both java 7 and java 8 JDKs)
  2. 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

2. 下載並解壓

下載並解壓,官方下載地址:http://storm.apache.org/downloads.html shell

# tar -zxvf apache-storm-1.2.2.tar.gz

3. 配置環境變量

# vim /etc/profile

添加環境變量:apache

export STORM_HOME=/usr/app/apache-storm-1.2.2
export PATH=$STORM_HOME/bin:$PATH

使得配置的環境變量生效:vim

# source /etc/profile

4. 啓動相關進程

由於要啓動多個進程,因此統一採用後臺進程的方式啓動。進入到 ${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 &

5. 驗證是否啓動成功

驗證方式一:jps 查看進程:框架

[root@hadoop001 app]# jps
1074 nimbus
1283 Supervisor
620 dev_zookeeper
1485 core
9630 logviewer

驗證方式二: 訪問 8080 端口,查看 Web-UI 界面:ide

看這裏!Storm【單機版】環境搭建

看這裏!Storm【單機版】環境搭建

相關文章
相關標籤/搜索