Storm的介绍与安装(简单)
# wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz# tar zxvf Python-2.7.2.tgz# cd Python-2.7.2# ./configure //配置依赖之类的,生成makefile# make //编译makefile# make install //安装# vi /etc/ld.so.conf在最后面追加/usr/local/lib/#?sudo?ldconfig
#wget http://ftp.meisei-u.ac.jp/mirror/apache/dist//zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz# tar zxf zookeeper-3.4.5.tar.gz# cp -R zookeeper-3.4.5 /usr/local/# ln -s /usr/local/zookeeper-3.4.5/ /usr/local/zookeeper# vi ~./bashrc (设置ZOOKEEPER_HOME和ZOOKEEPER_HOME/bin) 追加: export ZOOKEEPER_HOME="/path/to/zookeeper" export PATH=$PATH:$ZOOKEEPER_HOME/bin#cp /usr/local/zookeeper/conf/zoo_sample.cfg /usr/local/zookeeper/conf/zoo.cfg#cp?/usr/local/zookeeper/conf/zoo_sample.cfg??/usr/local/zookeeper/conf/zoo.cfg?
#vim zoo.cfg# the directory where the snapshot is stored.# do not use /tmp for storage, /tmp here is just# example sakes.dataDir=/usr/local/zookeeper/zookeeperdir/zookeeper-datadataLogDir=/usr/local/zookeeper/zookeeperdir/logs# sudo mkdir /tmp/zookeeper# sudo mkdir /var/log/zookeeper
# wget http://download.zeromq.org/zeromq-3.2.2.tar.gz# tar zxf zeromq-3.2.2.tar.gz# cd zeromq-3.2.2# ./configure# make# make install# sudo ldconfig (更新LD_LIBRARY_PATH)
# yum install git //这一步出现问题,找不到包,换用apt-get命令即可# git clone git://github.com/nathanmarz/jzmq.git# cd jzmq# ./autogen.sh# ./configure# make# make install
# wget http://github.com/downloads/nathanmarz/storm-0.7.1.zip# unzip storm-0.7.1.zip# cp -R storm-0.7.1 /usr/local/#vi ~/.bashrc 追加export STORM_HOME=/usr/local/storm-0.7.1 export PATH=$PATH:$STORM_HOME/bin#vim /etc/hosts
#wget http://mirror.bjtu.edu.cn/apache/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.tar.gz#cp apache-maven-3.0.4-bin.tar.gz /usr/local#cd /usr/local#tar -zxvf apache-maven-3.0.4-bin.tar.gz#ln -s apache-maven-3.0.4 maven#vim /etc/profile export M2_HOME=/usr/local/mavenPATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin#Source /etc/profile#mvn -v 查看是否安装成功
本人自己是按以下代码执行的:#storm?jar?storm-start.jar?mytest.LogProcess?tmp.txt?,?out.txt?false