spark启动简单脚本-创新互联
#!/bin/bash
# The next lines are for chkconfig on RedHat systems.
# chkconfig: 35 98 02
# description: Starts and stops xxx Server
#autor:516249940@qq.com
#date:2017-03-06
# The next lines are for chkconfig on SuSE systems.
# /etc/init.d/xxx
#
### BEGIN INIT INFO
# Provides: xxx
# Required-Start: $network $syslog
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop: 0 6
# Short-Description: Starts and stops xxx Server
# Description: Starts and stops xxx Server
### END INIT INFO
SPARK_SBIN="/usr/local/spark/sbin"
JAVA_ETC="/etc/alternatives"
case $1 in
start)
$SPARK_SBIN/start-all.sh
;;
stop)
$SPARK_SBIN/stop-all.sh
;;
restart|reload|force-reload)
$SPARK_SBIN/stop-all.sh
sleep 3
$SPARK_SBIN/start-all.sh
;;
status) # 查看状态需要做的步骤
$JAVA_ETC/jps
;;
*)
echo "$0 {start|stop|restart|status}"
exit 4
;;
esac
另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
名称栏目:spark启动简单脚本-创新互联
新闻来源:http://www.scyingshan.cn/article/gsdic.html


咨询
建站咨询
