本文环境如下:
操作系统
:CentOS 6 32位
ZooKeeper版本:3.4.8
Storm版本:1.0.0
JDK版本:1.8.0_77 32位
Python
版本:2.6.6
集群情况:一个主控节点(Master)和两个工作节点(Slave1,Slave2)
1. 搭建Zookeeper集群
安装参考:CentOS下ZooKeeper单机模式、集群模式安装
2. 在Nimbus和worker机器上安装依赖包
Java 6 Python 2.6.6
以上的版本是官方说已经有测试可以和Strom正常运行的版本,本文采用Java 8进行安装。 参考CentOS 6使用rpm方式安装JDK8。 由于CentOS 6已经自带Python 2.6.6,这边就不介绍安装方法了。可以采用python --version来检查服务器是否安装python,以及对应的版本。
3. 下载解压最新版的Storm
打开官网下载页面:http://storm.apache.org/downloads.html 选择适合的版本进行下载。
wget "http://apache.opencas.org/storm/apache-storm-1.0.0/apache-storm-1.0.0.tar.gz"
tar -xzvf apache-storm-1.0.0.tar.gz
mv apache-storm-1.0.0 /opt
转载请注明原文地址: https://ju.6miu.com/read-27472.html