From 7ec16ac7f63b6e2cc52781d3550061a59bf4673c Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Wed, 23 Sep 2020 17:42:52 +0200 Subject: [PATCH] YARN-10443. Document options of logs CLI. Contributed by Ankit Kumar. Fixes #2325 --- .../src/site/markdown/YarnCommands.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 c1d939b107..3082ff81bc 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 @@ -119,11 +119,23 @@ Usage: `yarn logs -applicationId [options] ` | COMMAND\_OPTIONS | Description | |:---- |:---- | +| -am \ | Prints the AM Container logs, specify comma-separated value to get logs for related AM Container | | -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) | +| -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 | | -help | Help | +| -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 | | -nodeAddress \ | NodeAddress in the format nodename:port (must be specified if container id is specified) | +| -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 \ | Prints the log file's first 'n' bytes or the last 'n' bytes (use negative values as bytes to read from the end) | +| -size_limit_mb \ | Limit the size(in megabytes) of the total logs which could be fetched (specify -1 to ignore the size limit) | Dump the container logs