From 1e0cc178c73bfdaaaaacf800c895e89d53552a99 Mon Sep 17 00:00:00 2001 From: Todd Lipcon Date: Sat, 14 May 2011 04:33:08 +0000 Subject: [PATCH] HADOOP-7192. Update fs -stat docs to reflect the format features. Contributed by Harsh J Chouraria. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1102951 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 3 +++ .../content/xdocs/file_system_shell.xml | 23 +++++++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index b5009aef07..e741002960 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -456,6 +456,9 @@ Release 0.22.0 - Unreleased HADOOP-7189. Add ability to enable 'debug' property in JAAS configuration. (Ted Yu via todd) + HADOOP-7192. Update fs -stat docs to reflect the format features. (Harsh + J Chouraria via todd) + OPTIMIZATIONS HADOOP-6884. Add LOG.isDebugEnabled() guard for each LOG.debug(..). diff --git a/src/docs/src/documentation/content/xdocs/file_system_shell.xml b/src/docs/src/documentation/content/xdocs/file_system_shell.xml index 54429b0eb6..eaf5e3cc5e 100644 --- a/src/docs/src/documentation/content/xdocs/file_system_shell.xml +++ b/src/docs/src/documentation/content/xdocs/file_system_shell.xml @@ -482,16 +482,29 @@
stat

- Usage: hdfs dfs -stat URI [URI …] + Usage: hdfs dfs -stat [format] URI [URI …]

-

- Returns the stat information on the path. -

+

Print statistics about the file/directory matching the given URI pattern in the specified format.

+

Format accepts:

+

Example:

Exit Code:
Returns 0 on success and -1 on error.