列出当前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的命令行管理应用