#!/bin/sh
for host in node-1 node-2 node-3
do
ssh $host "source /etc/profile;nohup kafka-server-start.sh /export/servers/kafka_2.11-1.0.0/config/server.properties >/dev/null 2>&1 &"
echo "$host kafka is running"
done
#!/bin/sh
for host in node-1 node-2 node-3
do
ssh $host "source /etc/profile;nohup kafka-server-start.sh /export/servers/kafka_2.11-1.0.0/config/server.properties >/dev/null 2>&1 &"
echo "$host kafka is running"
done
本文标题:kafka集群启动脚本
本文链接:https://www.haomeiwen.com/subject/ttiswftx.html
网友评论