jstorm on yarn命令集合

本文总结了JStorm YARN环境下的各种命令及其使用方法,包括添加、启动、停止守护进程、配置和查看版本等操作,并详细介绍了如何通过Java解析程序命令来简化流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前面几篇周报都是代码实现相关的。现在代码部分已经结束,所以来总结一下项目中其它相关部分的文档。

在已经实现了jstorm-yarn launch命令后,我开始思考去实现其它的命令。以下为jstorm-yarn help的输出:

jstorm-yarn help

usage: addSupervisors
 -appId <arg>         (Required) The storm clusters app ID
 -output <arg>        Output file
 -supervisors <arg>   (Required for addSupervisors) The # of supervisors to be added
usage: startSupervisors
 -appId <arg>         (Required) The storm clusters app ID
 -output <arg>        Output file
 -supervisors <arg>   (Required for addSupervisors) The # of supervisors to be added
usage: startNimbus
 -appId <arg>         (Required) The storm clusters app ID
 -output <arg>        Output file
 -supervisors <arg>   (Required for addSupervisors) The # of supervisors to be added
usage: stopSupervisors
 -appId <arg>         (Required) The storm clusters app ID
 -output <arg>        Output file
 -supervisors <arg>   (Required for addSupervisors) The # of supervisors to be added
usage: getStormConfig
 -appId <arg>         (Required) The storm clusters app ID
 -output <arg>        Output file
 -supervisors <arg>   (Required for addSupervisors) The # of supervisors to be added
usage: launch
jstorm-yarn launch <master.yaml>
 -appname <arg>            Application Name. Default value - JStorm-on-Yarn
 -jstormConfOutput <arg>   storm.yaml file
 -jstormHome <arg>         JStorm Home Directory
 -jstormZip <arg>          file path of jstorm.zip
 -output <arg>             Output file
 -queue <arg>              RM Queue in which this application is to be submitted
usage: stopNimbus
 -appId <arg>         (Required) The storm clusters app ID
 -output <arg>        Output file
 -supervisors <arg>   (Required for addSupervisors) The # of supervisors to be added
usage: setStormConfig
 -appId <arg>         (Required) The storm clusters app ID
 -output <arg>        Output file
 -supervisors <arg>   (Required for addSupervisors) The # of supervisors to be added
usage: version
jstorm-yarn version


usage: shutdown
 -appId <arg>         (Required) The storm clusters app ID
 -output <arg>        Output file
 -supervisors <arg>   (Required for addSupervisors) The # of supervisors to be added


输出格式参考storm-yarn中使用HelpFormatter进行格式化输出,使得代码更加简洁易懂,在以后用java解析程序命令时可采用这个,很方便。具体例子可参考 http://www.programcreek.com/java-api-examples/index.php?api=org.apache.commons.cli.HelpFormatter


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值