storm安装配置

1.修改主机名:
vim /etc/sysconfig/network


NETWORKING=yes


HOSTNAME=MASTER






2.修改IP:


先用ifconfig得到ip信息,将其复制


设置ip地址为静态






vim /etc/sysconfig/network-scripts/ifcfg-eth0


BOOTPROTO="static"


HWADDR="00:0C:29:FC:62:B6"


IPV6INIT="yes"


NM_CONTROLLED="yes"


ONBOOT="yes"


TYPE="Ethernet"


UUID="d0731a46-36df-4ab1-9bac-42bb151acc41"


IPADDR="192.168.1.250"


NETMASK="255.255.255.0"


GATEWAY="192.168.1.1"


DNS1="8.8.8.8"


DNS2="8.8.4.4"






3.修改主机和IP的映射关系
vim /etc/hosts






4.关闭防火墙








5.上传安装jdk,配置环境变量










上传
zeromq-2.1.7.tar.gz
jzmq-master.zip
storm-0.8.2.zip
zookeeper-3.4.5.tar.gz
等文件




1.编译安装ZMQ:


tar -xzf zeromq-2.1.7.tar.gz


cd zeromq-2.1.7


./configure


#编译可能会出错:configure: error: Unable to find a working C++ compiler


#安装一下依赖的rpm包(在vm虚拟机中加载安装的cd盘文件,里面的services文件夹有所有的包):
libstdc++-devel
gcc-c++
libuuid-devel


./configure


make 
make install






2.编译安装JZMQ:
cd jzmq


./autogen.sh


#报错:autogen.sh: error: could not find libtool. libtool is required to run autogen.sh. 
缺少libtool
yum install libtool


或者手动安装


autoconf-2.63-5.1.el6.noarch.rpm 


automake-1.11.1-4.el6.noarch.rpm 


libtool-2.2.6-15.5.el6.x86_64.rpm




./configure


make


make install




3.安装启动zookeeper


4.上传解压storm
进入conf目录
修改storm.yaml 


#zookeeper的节点
storm.zookeeper.servers:
     - "cloud4"
     - "cloud5"
     - "cloud6"
#nimbus主节点
nimbus.host: "cloud4"


启动nimbus

输出日志到null下

在后台运行

./storm nimbus > ../dev/null 2>&1 &
posted @ 2015-04-06 15:43  蒋源德  阅读(181)  评论(0编辑  收藏  举报