spark启动简单脚本
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #!/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 |
低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 上一篇
ELK平台搭建 ES
系统环境: System: Centos 6.5 ElasticSearch: 2.3.3 Logstash: 2.3.3 Kibana: 4.5.1 Java: jdk_1.8.0_71 新建用户: ELK不允许root用户启动 1 #useraddelk JDK或JRE下载安装: java也可到这个地址下载https://www.reucon.com/cdn/java/ 1 2 3 #mkdir/usr/java/ #cd/usr/java #tar-zxvfjdk-8u71-linux-x64.tar.gz 1 2 3 4 5 6 7 8 9 10 11 12 #修改文件夹名,防止异常,养成好习惯 #mvjdk1.8.0_71jdk18071 #配置环境变量 #vi/etc/profile export JAVA_HOME= /usr/java/jdk18071 export JAVA_BIN=$JAVA_HOME /bin export JRE_HOME=$JAVA_HOME /jre export JRE_bin=$JRE_HOME /bin export CLAS...
- 下一篇
简单的hadoop启动脚本
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 #!/bin/bash #ThenextlinesareforchkconfigonRedHatsystems. #chkconfig:359802 #description:StartsandstopshadoopServer #autor:516249940@qq.com #date:2017-03-06 #ThenextlinesareforchkconfigonSuSEsystems. #/etc/init.d/xxx # ###BEGININITINFO #Provides:xxx #Required-Start:$network$syslog #Required-Stop: #Default-Start:235 #Default-Stop:06 #Short-Descripti...
相关文章
文章评论
共有0条评论来说两句吧...