zookeeper集群启动脚本文件

cd bin/

vim myzk.sh


for host in hadoop102 hadoop103 hadoop104
do
ssh $host "source /etc/profile;/opt/module/zookeeper-3.5.7/bin/zkServer.sh $1"
echo "$host zk is running"
done
posted @ 2021-09-22 11:25  靠谱杨  阅读(92)  评论(0编辑  收藏  举报