设置一键部署脚本
mkdir -p /export/servers/oneKey
cd /export/servers/oneKey
mkdir kafka storm zk
rz script.file
vi /etc/profile
-
#set onekey env
export OK_HOME=/export/servers/oneKey
export PATH=${OK_HOME}/zk:$PATH
export PATH=${OK_HOME}/storm:$PATH
export PATH=${OK_HOME}/kafka:$PATH
-
source /etc/profile
-
startzk.sh
startkafka.sh
Storm集群安装部署
192.168.140.128 node01 zk01 kafka01 storm01
192.168.140.129 node02 zk02 kafka02 storm02
192.168.140.130 node03 zk03 kafka03 storm03 mysql
cd /export/servers/software/
wget http://mirrors.hust.edu.cn/apache/storm/apache-storm-1.1.1/apache-storm-1.1.1.tar.gz
tar -zxvf apache-storm-1.1.1.tar.gz -C ../servers/
cd /export/servers/
mv apache-storm-1.1.1 storm
cd /export/servers/storm/conf
rm storm.yaml
touch storm.yaml
vi storm.yaml
- hi,boy!copy it,can not input
storm.zookeeper.servers:
- "zk01"
- "zk02"
- "zk03"
nimbus.seeds: ["storm01", "storm02", "storm03"]
storm.local.dir: "/export/data/storm"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703