yarn application --help -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 -appTypes Works with -list to filter applications based on input comma-separated list of application types. -help Displays help for all commands. -kill Kills the application. -list List applications. Supports optional use of -appTypes to filter applications based on application type, and -appStates to filter applications based on application state. -movetoqueue Moves the application to a different queue. -queue Works with the movetoqueue command to specify which queue to move an application to. -status Prints the status of the application. `List all the finished applications:` yarn application -appStates FINISHED -list
2条答案
按热度按时间sbtkgmzw1#
1. Using Yarn Logs:
在日志中你可以看到tracking URL: http://<nn>:8088/proxy/application_*****/
如果复制并打开链接,您可以在resourcemanager中看到应用程序的所有日志。2.Using Spark application:
从sparkcontext我们可以得到applicationid。yarn application --help
-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
-appTypes Works with -list to filter applications
based on input comma-separated list of
application types.
-help Displays help for all commands.
-kill Kills the application.
-list List applications. Supports optional use
of -appTypes to filter applications based
on application type, and -appStates to
filter applications based on application
state.
-movetoqueue Moves the application to a different
queue.
-queue Works with the movetoqueue command to
specify which queue to move an
application to.
-status Prints the status of the application.
`List all the finished applications:`
yarn application -appStates FINISHED -list
balp4ylt2#
你也可以使用
curl
使用获取应用程序所需的详细信息YARN Rest API
.输出