diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/YarnCommands.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/YarnCommands.md index c1d939b1073..22b6d1c55de 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/YarnCommands.md +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/YarnCommands.md @@ -122,8 +122,20 @@ Usage: `yarn logs -applicationId [options] ` | -applicationId \ | Specifies an application id | | -appOwner \ | AppOwner (assumed to be current user if not specified) | | -containerId \ | ContainerId (must be specified if node address is specified) | -| -help | Help | | -nodeAddress \ | NodeAddress in the format nodename:port (must be specified if container id is specified) | +| -am \ | Prints the AM Container logs, specify comma-separated value to get logs for related AM Container | +| -client_max_retries \ | Max number of retry for a client to get the container logs for the running applications | +| -client_retry_interval_ms \ | Retry Interval (work with client_max_retries) | +| -clusterId \ | ClusterId | +| -list_nodes | Show the list of nodes that successfully aggregated logs (can only be used with finished applications) | +| -log_files \ | View a specific log type | +| -log_files_pattern \ | Get matched log files by using java regex | +| -out \ | Download logs to specified local folder | +| -show_application_log_info | List all container IDs (combine this with --nodeAddress to get containerIds for all the containers on the specific NodeManager) | +| -show_container_log_info | Show the container log metadata | +| -size \ | To list only a portion of the log files for a particular container | +| -size_limit_mb \ | Size of the total logs which could be fetched | +| -help | Help | Dump the container logs