标签:moni with list .sh rbd file nbsp mon magic
#! /bin/bash
#iplist=(10.130.2.20
)
function monitorbdcmagic()
{
source /etc/profile
line=`sudo lsof -i :11000| grep *:irisa | wc -l`
if [[ $line -eq 1 ]]
then
echo start-thriftserver-withJDBC is running!
else
sh ${SPARK_HOME}/sbin/start-thriftserver-withJDBC.sh
fi
}
#for host in ${iplist[*]};
#do
monitorbdcmagic
#done
标签:moni with list .sh rbd file nbsp mon magic
原文地址:http://www.cnblogs.com/sunt9/p/6690555.html