This is an automated email from the ASF dual-hosted git repository.
adamantal pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 7ec16ac YARN-10443. Document options of logs CLI. Contributed by
Ankit Kumar.
7ec16ac is described below
commit 7ec16ac7f63b6e2cc52781d3550061a59bf4673c
Author: Adam Antal <[email protected]>
AuthorDate: Wed Sep 23 17:42:52 2020 +0200
YARN-10443. Document options of logs CLI. Contributed by Ankit Kumar.
Fixes #2325
---
.../hadoop-yarn-site/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 c1d939b..3082ff8 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 <application ID>
[options] `
| COMMAND\_OPTIONS | Description |
|:---- |:---- |
+| -am \<AM Containers\> | Prints the AM Container logs, specify
comma-separated value to get logs for related AM Container |
| -applicationId \<application ID\> | Specifies an application id |
| -appOwner \<AppOwner\> | AppOwner (assumed to be current user if not
specified) |
| -containerId \<ContainerId\> | ContainerId (must be specified if node
address is specified) |
+| -client_max_retries \<Max Retries\> | Max number of retry for a client to
get the container logs for the running applications |
+| -client_retry_interval_ms \<Retry Interval\> | Retry Interval (work with
client_max_retries) |
+| -clusterId \<Cluster ID\> | ClusterId |
| -help | Help |
+| -list_nodes | Show the list of nodes that successfully aggregated logs (can
only be used with finished applications) |
+| -log_files \<Log File Name\> | View a specific log type |
+| -log_files_pattern \<Log File Pattern\> | Get matched log files by using
java regex |
| -nodeAddress \<NodeAddress\> | NodeAddress in the format nodename:port (must
be specified if container id is specified) |
+| -out \<Local Directory\> | 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 \<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 \<Size Limit\> | Limit the size(in megabytes) of the total
logs which could be fetched (specify -1 to ignore the size limit) |
Dump the container logs
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]