文章16 | 阅读 7177 | 点赞0
kafka 群起脚本kafka.sh
#!/bin/bash
case $1 in "start"){
for i in backup01 backup02 backup03
do
echo "========== $i =========="
ssh $i '/usr/local/hadoop/kafka/kafka_2.12-2.4.1/bin/kafka-server-start.sh
-daemon /usr/local/hadoop/kafka/kafka_2.12-2.4.1/binconfig/server.properties'
done
};;
"stop"){
for i in backup01 backup02 backup03
do
echo "========== $i =========="
ssh $i '/usr/local/hadoop/kafka/kafka_2.12-2.4.1/bin/kafka-server-stop.sh'
done
};;
esac
版权说明 : 本文为转载文章, 版权归原作者所有 版权申明
原文链接 : https://blog.csdn.net/ywl470812087/article/details/105177897
内容来源于网络,如有侵权,请联系作者删除!