yarn指令不能用_使用Yarn的命令行管理应用

本文介绍了如何使用Yarn的命令行工具管理应用程序,包括列出应用、杀死应用、查看帮助等操作,并提供了相关参数的详细说明。
摘要由CSDN通过智能技术生成

列出当前Yarn集群上运行的全部应用

yarn application -list

杀掉某个具体的应用

yarn application -kill applicationId

执行yarn applicaton --help,可以查看本命令的使用帮助。

usage: application

-appId Specify Application Id to be operated

-appStates Works with -list to filter applications

based on input comma-separated list of

application states. The valid application

state can be one of the following:

ALL,NEW,NEW_SAVING,SUBMITTED,ACCEPTED,RUN

NING,FINISHED,FAILED,KILLED

-appTags Works with -list to filter applications

based on input comma-separated list of

application tags.

-appTypes Works with -list to filter applications

based on input comma-separated list of

application types.

-changeQueue Moves application to a new queue.

ApplicationId can be passed using 'appId'

option. 'movetoqueue' command is

deprecated, this new command

'changeQueue' performs same

functionality.

-help Displays help for all commands.

-kill Kills the application. Set of

applications can be provided separated

with space

-list List applications. Supports optional use

of -appTypes to filter applications based

on application type, -appStates to filter

applications based on application state

and -appTags to filter applications based

on application tag.

-movetoqueue Moves the application to a different

queue. Deprecated command. Use

'changeQueue' instead.

-queue Works with the movetoqueue command to

specify which queue to move an

application to.

-status Prints the status of the application.

-updateLifetime update timeout of an application from

NOW. ApplicationId can be passed using

'appId' option. Timeout value is in

seconds.

-updatePriority update priority of an application.

ApplicationId can be passed using 'appId'

option.

若非注明,均为原创,欢迎转载,转载请注明来源:使用Yarn的命令行管理应用

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值