1. 下载必要组件,搭建环境
- 从Downloads下载relase包
- 搭建Zookeeper集群(伪分布)
- 安装Python 2.6(已有)
- 安装Java(JDK)
- 安装zeromq(可选)
- 安装Jzmq(可选)
- 配置$JSTORM_HOME/conf/storm.yaml
- 搭建web ui
2. 配置环境变量
往/etc/profile与/home/.bashrc加入以下语句
ZOOKEEPER_HOME=/home/rui/tools/zookeeper-3.4.6
HADOOP_HOME=/home/rui/tools/hadoop-1.2.1
JAVA_HOME=/home/rui/tools/jdk1.8.0_11
PATH=$JAVA_HOME/bin:$ZOOKEEPER_HOME/bin:$HADOOP_HOME/bin:$HADOOP_HOME/conf:/usr/bin:/bin:/sbin:/usr/sbin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$ZOOKEEPER_HOME/lib:$JAVA_HOME/lib/tools.jar
export ZOOKEEPER_HOME
export HADOOP_HOME
export JAVA_HOME
export PATH
export CLASSPATH
export JRE_HOME=$JAVA_HOME/jre
3. 运行与调试