安装storm入口机

安装storm入口机10-142-164-14

修改入口机的/etc/hosts.allow添加安装程序所在的服务器。

把安装程序所在服务器的/root/.ssh/id_rsa.pub 的内容放到10-142-164-14服务器/root/.ssh/authorized_keys文件中

修改/etc/hsots把入口机添加到

1.部署其它节点
vim entrances 文件内容如下:
10-142-164-14


把zeromq-4.0.5.tar.gz分发到各节点的/tmp目录下并安装。
./upgrade.sh distribute entrances zeromq-4.0.5.tar.gz /tmp
./upgrade.sh common  entrances "cd /tmp;tar -xzf zeromq-4.0.5.tar.gz; cd zeromq-4.0.5; ./configure; make; make install; cd ..; rm -rf zeromq-4.0.5"
./upgrade.sh common  entrances "cd /tmp;rm -rf zeromq-4.0.5.tar.gz"

#分发jzmq并安装
./upgrade.sh distribute entrances jzmq /tmp
./upgrade.sh common  entrances "cd /tmp/jzmq;./autogen.sh;./configure; make; make install"
./upgrade.sh common entrances "rm -rf /tmp/jzmq"
#分发storm并设置 环境变量
./upgrade.sh distribute entrances  /data/hadoop/data1/usr/local/apache-storm-0.9.3 /letv
./upgrade.sh common entrances "useradd hadoop"
./upgrade.sh common entrances  "rm -rf /usr/local/storm;ln -s /letv/apache-storm-0.9.3 /usr/local/storm; chown -R hadoop:hadoop /letv/apache-storm-0.9.3 "
./upgrade.sh common entrances  "echo 'export STORM_HOME=/usr/local/storm' >> /etc/profile"
./upgrade.sh common entrances  "echo 'export PATH=${PATH}:${STORM_HOME}/bin' >> /etc/profile"

./upgrade.sh distribute entrances /etc/hosts /etc/hosts

你可能感兴趣的:(storm)