strom安装需要:
ZooKeeper, 用于协调集群,不用于消息传递。
ZeroMQ:C++实现的消息队列。
JZMQ:实现java访问ZeroMQ消息队列
strom:strom框架
注:如果消息队列使用Netty,则无需安装ZeroMQ和
JZMQ
系统已经安装了Openjdk,卸载后安装sun jdk
查看:
rpm -qa | grep jdk
rpm -qa | grep gcj
删除:
yum -y remove java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64
1、安装jdk
tar -xvf jdk-8u144-linux-i586.tar.gz
mkdir /usr/java
mv jdk1.8.0_144 /usr/java
cd /usr/java/jdk1.8.0_144
进入bin目录下试运行java
修改环境变量
vi /etc/profile
添加:
export JAVA_HOME=/usr/java/jdk1.8.0_144
export CLASSPATH=
JAVAHOME/libexportPATH=
PATH:$JAVA_HOME/bin
source /etc/profile
查看版本信息:
java -version
2、安装zeroMQ
安装过程,参见我的相关博文。
http://blog.csdn.net/jim_long_long/article/details/78062368
3、安装JZMQ
unzip jzmq-master.zip
cd jzmq-masterls
./autogen.sh
autogen.sh: error: could not find libtool. libtool is required to run autogen.sh.
./autogen.sh 成功后,产生configure脚本
./configure
make
make install
问题解决:
a. yum install libtool
b. 手动安装:
rpm -ivh libtool-2.2.6-15.5.el6.x86_64.rpm
error: Failed dependencies:
autoconf >= 2.58 is needed by libtool-2.2.6-15.5.el6.x86_64
automake >= 1.4 is needed by libtool-2.2.6-15.5.el6.x86_64
rpm -ivh autoconf-2.63-5.1.el6.noarch.rpm
rpm -ivh automake-1.11.1-4.el6.noarch.rpm
4、安装python
系统一般自带
whith python
python –version
5、安装storm http://storm.apache.org/downloads.html
tar -xvf apache-storm-1.1.1.tar.gz
6、安装zookeeper
tar -xvf zookeeper-3.4.6.tar.gz
配置zoo.cfg
cp zoo_sample.cfg zoo.cfg
cd bin
./zkServer.sh 通过