storm环境搭建-----Linux
下载:zookeeper-3.4.3
下载: zeromq-3.2.2.tar
下载 jzmq-master.zip
下载:storm-0.8.1.01.zip.gz
解压zk 算成功
修改/home/webapp/zookeeper-3.4.3/conf下的zoo.cfg
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/home/webapp/zookeeper-3.4.3/data
dataLogDir=/home/webapp/zookeeper-3.4.3/log
# the port at which the clients will connect
clientPort=2181
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
#
http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
server.1=127.0.0.1:2888:3888
启动 ./zkServer.sh start
注意端口
2.编译zeromq3.2.2
进入:/home/webapp/zeromq-3.2.2
常规:./configure
make
make install
成功后
3.开始安装jzmq-master 这个比较蛋疼,走了很过弯路
不要忘记配置JAVA_HOME 环境变量哦
/home/webapp/jzmq-master
./autogen.sh
如果报libtool不存在 我第一次通过编译安装libtool后不报错,这一步都过去了,
但是后面安装会有问题 ,最好一次性安装好
安装rpm -ivh libtool-1.5.22-7.el5_4.i386.rpm
如果报autoConfig 需要安装
rpm -ivh imake-1.0.2-3.i386.rpm
rpm -ivh autoconf213-2.13-12.1.noarch.rpm
rpm -ivh automake-1.9.6-2.3.el5.noarch.rpm
基本就通过了
4 .storm
解压storm-0.8.1
cd 到bin
./storm numbus
Running: java -server -Dstorm.options= -Dstorm.home=/home/webapp/storm-0.8.1 -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -cp /home/webapp/storm-0.8.1/storm-0.8.1.jar:/home/webapp/storm-0.8.1/lib/json-simple-1.1.jar:/home/webapp/storm-0.8.1/lib/commons-lang-2.5.jar:/home/webapp/storm-0.8.1/lib/tools.macro-0.1.0.jar:/home/webapp/storm-0.8.1/lib/commons-exec-1.1.jar:/home/webapp/storm-0.8.1/lib/jetty-util-6.1.26.jar:/home/webapp/storm-0.8.1/lib/commons-fileupload-1.2.1.jar:/home/webapp/storm-0.8.1/lib/slf4j-log4j12-1.5.8.jar:/home/webapp/storm-0.8.1/lib/libthrift7-0.7.0.jar:/home/webapp/storm-0.8.1/lib/jgrapht-0.8.3.jar:/home/webapp/storm-0.8.1/lib/minlog-1.2.jar:/home/webapp/storm-0.8.1/lib/log4j-1.2.16.jar:/home/webapp/storm-0.8.1/lib/joda-time-2.0.jar:/home/webapp/storm-0.8.1/lib/ring-servlet-0.3.11.jar:/home/webapp/storm-0.8.1/lib/ring-jetty-adapter-0.3.11.jar:/home/webapp/storm-0.8.1/lib/commons-io-1.4.jar:/home/webapp/storm-0.8.1/lib/servlet-api-2.5.jar:/home/webapp/storm-0.8.1/lib/curator-client-1.0.1.jar:/home/webapp/storm-0.8.1/lib/tools.logging-0.2.3.jar:/home/webapp/storm-0.8.1/lib/compojure-0.6.4.jar:/home/webapp/storm-0.8.1/lib/kryo-2.17.jar:/home/webapp/storm-0.8.1/lib/clj-time-0.4.1.jar:/home/webapp/storm-0.8.1/lib/zookeeper-3.3.3.jar:/home/webapp/storm-0.8.1/lib/asm-4.0.jar:/home/webapp/storm-0.8.1/lib/httpcore-4.1.jar:/home/webapp/storm-0.8.1/lib/tools.cli-0.2.2.jar:/home/webapp/storm-0.8.1/lib/jetty-6.1.26.jar:/home/webapp/storm-0.8.1/lib/curator-framework-1.0.1.jar:/home/webapp/storm-0.8.1/lib/junit-3.8.1.jar:/home/webapp/storm-0.8.1/lib/servlet-api-2.5-20081211.jar:/home/webapp/storm-0.8.1/lib/clojure-1.4.0.jar:/home/webapp/storm-0.8.1/lib/math.numeric-tower-0.0.1.jar:/home/webapp/storm-0.8.1/lib/commons-codec-1.4.jar:/home/webapp/storm-0.8.1/lib/jzmq-2.1.0.jar:/home/webapp/storm-0.8.1/lib/disruptor-2.10.1.jar:/home/webapp/storm-0.8.1/lib/commons-logging-1.1.1.jar:/home/webapp/storm-0.8.1/lib/hiccup-0.3.6.jar:/home/webapp/storm-0.8.1/lib/core.incubator-0.1.0.jar:/home/webapp/storm-0.8.1/lib/carbonite-1.5.0.jar:/home/webapp/storm-0.8.1/lib/guava-13.0.jar:/home/webapp/storm-0.8.1/lib/reflectasm-1.07-shaded.jar:/home/webapp/storm-0.8.1/lib/httpclient-4.1.1.jar:/home/webapp/storm-0.8.1/lib/ring-core-0.3.10.jar:/home/webapp/storm-0.8.1/lib/slf4j-api-1.5.8.jar:/home/webapp/storm-0.8.1/lib/jline-0.9.94.jar:/home/webapp/storm-0.8.1/lib/clout-0.4.1.jar:/home/webapp/storm-0.8.1/lib/snakeyaml-1.9.jar:/home/webapp/storm-0.8.1/lib/objenesis-1.2.jar:/home/webapp/storm-0.8.1/log4j:/home/webapp/storm-0.8.1/conf -Xmx1024m -Dlogfile.name=nimbus.log -Dlog4j.configuration=storm.log.properties backtype.storm.daemon.nimbus
./storm supervisor
Running: java -server -Dstorm.options= -Dstorm.home=/home/webapp/storm-0.8.1 -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -cp /home/webapp/storm-0.8.1/storm-0.8.1.jar:/home/webapp/storm-0.8.1/lib/json-simple-1.1.jar:/home/webapp/storm-0.8.1/lib/commons-lang-2.5.jar:/home/webapp/storm-0.8.1/lib/tools.macro-0.1.0.jar:/home/webapp/storm-0.8.1/lib/commons-exec-1.1.jar:/home/webapp/storm-0.8.1/lib/jetty-util-6.1.26.jar:/home/webapp/storm-0.8.1/lib/commons-fileupload-1.2.1.jar:/home/webapp/storm-0.8.1/lib/slf4j-log4j12-1.5.8.jar:/home/webapp/storm-0.8.1/lib/libthrift7-0.7.0.jar:/home/webapp/storm-0.8.1/lib/jgrapht-0.8.3.jar:/home/webapp/storm-0.8.1/lib/minlog-1.2.jar:/home/webapp/storm-0.8.1/lib/log4j-1.2.16.jar:/home/webapp/storm-0.8.1/lib/joda-time-2.0.jar:/home/webapp/storm-0.8.1/lib/ring-servlet-0.3.11.jar:/home/webapp/storm-0.8.1/lib/ring-jetty-adapter-0.3.11.jar:/home/webapp/storm-0.8.1/lib/commons-io-1.4.jar:/home/webapp/storm-0.8.1/lib/servlet-api-2.5.jar:/home/webapp/storm-0.8.1/lib/curator-client-1.0.1.jar:/home/webapp/storm-0.8.1/lib/tools.logging-0.2.3.jar:/home/webapp/storm-0.8.1/lib/compojure-0.6.4.jar:/home/webapp/storm-0.8.1/lib/kryo-2.17.jar:/home/webapp/storm-0.8.1/lib/clj-time-0.4.1.jar:/home/webapp/storm-0.8.1/lib/zookeeper-3.3.3.jar:/home/webapp/storm-0.8.1/lib/asm-4.0.jar:/home/webapp/storm-0.8.1/lib/httpcore-4.1.jar:/home/webapp/storm-0.8.1/lib/tools.cli-0.2.2.jar:/home/webapp/storm-0.8.1/lib/jetty-6.1.26.jar:/home/webapp/storm-0.8.1/lib/curator-framework-1.0.1.jar:/home/webapp/storm-0.8.1/lib/junit-3.8.1.jar:/home/webapp/storm-0.8.1/lib/servlet-api-2.5-20081211.jar:/home/webapp/storm-0.8.1/lib/clojure-1.4.0.jar:/home/webapp/storm-0.8.1/lib/math.numeric-tower-0.0.1.jar:/home/webapp/storm-0.8.1/lib/commons-codec-1.4.jar:/home/webapp/storm-0.8.1/lib/jzmq-2.1.0.jar:/home/webapp/storm-0.8.1/lib/disruptor-2.10.1.jar:/home/webapp/storm-0.8.1/lib/commons-logging-1.1.1.jar:/home/webapp/storm-0.8.1/lib/hiccup-0.3.6.jar:/home/webapp/storm-0.8.1/lib/core.incubator-0.1.0.jar:/home/webapp/storm-0.8.1/lib/carbonite-1.5.0.jar:/home/webapp/storm-0.8.1/lib/guava-13.0.jar:/home/webapp/storm-0.8.1/lib/reflectasm-1.07-shaded.jar:/home/webapp/storm-0.8.1/lib/httpclient-4.1.1.jar:/home/webapp/storm-0.8.1/lib/ring-core-0.3.10.jar:/home/webapp/storm-0.8.1/lib/slf4j-api-1.5.8.jar:/home/webapp/storm-0.8.1/lib/jline-0.9.94.jar:/home/webapp/storm-0.8.1/lib/clout-0.4.1.jar:/home/webapp/storm-0.8.1/lib/snakeyaml-1.9.jar:/home/webapp/storm-0.8.1/lib/objenesis-1.2.jar:/home/webapp/storm-0.8.1/log4j:/home/webapp/storm-0.8.1/conf -Xmx1024m -Dlogfile.name=nimbus.log -Dlog4j.configuration=storm.log.properties backtype.storm.daemon.nimbus
大功告成,开始storm之旅吧!!!!!!!!!!!!!!!!!!!
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。