分享

“一键启动zookeeper所有机器”的shell脚本

linbowei 发表于 2016-8-5 18:15:41 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 0 6672
sh /home/hadoop/work/zookeeper-3.4.8/bin/zkServer.sh start
sleep 1
echo done!
ssh hadoop@namenode2 > /dev/null 2>&1 << eeooff
cd /home/hadoop/work/zookeeper-3.4.8/bin
sh zkServer.sh start
exit
eeooff
echo done!
sleep 1
ssh hadoop@datanode1  > /dev/null 2>&1 << eeooff
cd /home/hadoop/work/zookeeper-3.4.8/bin
sh zkServer.sh start
exit
eeooff
echo done!
sleep 1
ssh hadoop@datanode2 > /dev/null 2>&1 << eeooff
cd /home/hadoop/work/zookeeper-3.4.8/bin
sh zkServer.sh start
exit
eeooff
echo done!
sleep 1
ssh hadoop@datanode3   > /dev/null 2>&1 << eeooff
cd /home/hadoop/work/zookeeper-3.4.8/bin
sh zkServer.sh start
exit
eeooff
echo done!

没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条