kafka集群启动脚本
2018-08-31 本文已影响0人
扣篮的左手
#!/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