首先安装zookeeper集群,然后安装storm集群。
我使用的是centos 32bit的三台虚拟机.
MachineName |
ip |
namenode |
192.168.99.110 |
datanode01 |
192.168.99.111 |
datanode02 |
192.168.99.112 |
首先配置好ssh,可以无密码互访。
安装好jdk,我本机安装的是1.7.
安装好python.机器自带2.6.6.
安装zookeeper的时候,下载文件,解压,在
/etc/profile 中设置环境变量。
修改zoo.cfg,生成myid。
需要注意一点的时,我在测试zookeeper集群的时候,
我们需要分别启动每个结点的zookeeper,
我开始以为是hadoop集群一样,在namenode上启动一下就好了。
但zookeeper是去中心化的设计,不一样的。
以下是截图和说明。
下载并解压storm文件
http://apache.dataguru.cn/storm/apache-storm-0.9.5/
http://apache.dataguru.cn/storm/apache-storm-0.9.5/apache-storm-0.9.5.tar.gz
tar xvf apache-storm-0.9.5.tar.gz
mv apache-storm-0.9.5 /app/storm095
设置环境变量
cd /app/storm095
echo "export STORM_HOME=$(pwd)" >>~/.bashrc
echo 'export PATH=$PATH:$STORM_HOME/bin' >>~/.bashrc
source ~/.bashrc
Storm 配置文件storm.yaml,一定要注意其格式(冒号后面有空格),否则序列化会失败,造成启动失败。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAvAAAAE7CAIAAAA0AyLHAAAgAElEQVR4nO3dPZLqPNqHccVUnYCMjIiIesJO2EdnJ6ZqtkDkJbABqoZNkFJexEQElKsmfoPZgN/AYGTplnT7A7oF19QveKaPkSXbtP4ty5b5z3//95///u/f//73v/71L7P+AgAAyA+BBgAAZI9AAwAAskegAQAA2SPQAACA7BFoAABA9gg0AAAgewQaAACQPQINAADIHoEGAABkj0ADAACyR6ABAADZI9AAAIDsEWgAAED2CDQAACB76UBzqMy5MOsvc63NLlAK27xmmzG+j6auTf2cwtE616auTV3+wK535e0U16E6FKaub5eZ71A9PjtmmwFuxVbme1gJ0Xb9wHHGpxr5HczY72gXgSanbYKK7reo6/D3seWT0tKTXO9NcOrcdqvn4h4g6keP2EY3v991ft0cjtZvHPUxTPo+/kAn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AABA9gg0AAAgewQaAACQPQINAADIHoEGAABkj0ADAACyR6ABAADZI9AkWe/5td4IvDpexDf8SksWbOfBNwVLpbGuEwAAPRFoYpZlJ8R0FCdxHQMv0Gznj5Qjrvq0n3VDzLKsTWAVTAAAICLQBK2Ol9CASoCwqJO3GqWw2rZHDEYAACCIQBOyn/W89bM6Xry7Rdu5N9biL7jtIdAAANAPgUa2Ol56rncduJ3kpaLkwM+yZBoNAAD9EGhky7KeF2ZdnNq5uql8Y8+VuStOfjQJBZrHvGDSDAAAPRFoRJtFVc/Lk0nM57UUJ2Emb59Ac7edhx+GAgAAoncKNJvDH+lBalPX5rTrV9TtQevuiMtmUQUfPlqWUgoZEmhMOjwBAICudwo0E9osKv/Wz2ZRhR5Qku43fZn1137mDduoHp6SkhAAAAgh0MikmbmRQCM8sL3+MuJD2oqnnAg0AAD0Q6AJ8bOI8Ax2Q3pg++Y2uThWrI9bTgAA9EOgCVodL9Y83+08+KBTPH90Eow/PLM6XrovI94sKt4UDABAPwSaKNVj26H7TfYG8bWc7OWieMQJAIDeCDQAACB7BBoAAJA9Ag0AAMgegQYAAGSPQAMAALL31EDzf4r//fwhAAAAuSPQAACA7BFoAABA9gg0AAAge+lAc6jMuTDrL3Otza5f6QQaAADwCgQaAACQvXSgOdfm8NesC1NX5rtf6QQaAADwCgQaAACQvXSgud1pKkxd9i2dQAMAAF4hHGgKU9cy9UwaAg0AAHgF7QjN95ERGgAA8EulAs196syuNNdj39IJNAAA4BWCgWZXBm459RinIdAAAIBXSIzQtHea2rfR9EGgAQAAr0CgAQAA2UsEmnbqzO1tNP1KJ9AAAIBXINAAAIDs9Qg0PRdyMgQaAADwEv8Pi946Kl4wxvIAAAAASUVORK5CYII=" alt="" />
使用的启动命令:
Bin/storm nimbus &
Bin/storm ui &
Bin/storm logviewer &
Bin/storm supervisor &
以上是zookeeper集群的成功运行截图。
下面是storm的安装与例子执行的情况。
默认的Web服务端口号是8080. 输入 nimbus运行所在机器的ip:8080查看集群的状态和作业情况。
cat README.markdown
仔细阅读这里面,有如何进行简单的测试的命令,我执行了:
mvn clean install -DskipTests=true
mvn compile exec:java -Dstorm.topology=storm.starter.WordCountTopology
还有更多的指示,可以进行练习。