标签:exp zookeeper tar zook ado 自启 .com nim http
一、设置zookeeper开机自启动
master节点
vim start_zookeeper.sh
#!/bin/sh
source /home/hadoop/.bashrc
cd $ZOOKEEPER_HOME
bin/zkServer.sh start
slave1节点
vim start_zookeeper.sh
#!/bin/sh
source /home/hadoop/.bashrc
cd $ZOOKEEPER_HOME
bin/zkServer.sh start
slave2节点
vim start_zookeeper.sh
#!/bin/sh
source /home/hadoop/.bashrc
cd $ZOOKEEPER_HOME
bin/zkServer.sh start
bashrc里面添加路径
export ZOOKEEPER_HOME=/home/hadoop/app/zookeeper
export PATH=$ZOOKEEPER_HOME/bin:$PATH
将master节点的bashrc文件拷贝到其他节点
zookeeper设置完毕!!!!
二、设置storm的开机自启动
直接在vim start_zookeeper.sh里面编辑
master节点
sleep 10 (zookeeper启动后暂停10秒)
cd $STORM_HOME
bin/storm nimbus
bin/storm ui
slave1节点
sleep 10
cd $STORM_HOME
bin/storm supervisor
slave2节点
sleep 10
cd $STORM_HOME
bin/storm supervisor
标签:exp zookeeper tar zook ado 自启 .com nim http
原文地址:https://www.cnblogs.com/lyywj170403/p/9025264.html