hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weic...@apache.org
Subject hadoop git commit: HADOOP-13233. help of stat is confusing. Contributed by Attila Bukor.
Date Mon, 13 Feb 2017 18:18:45 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 205fc1f10 -> 12ad077aa


HADOOP-13233. help of stat is confusing. Contributed by Attila Bukor.

(cherry picked from commit cc45da79fda7dfba2795ac397d62f40a858dcdd9)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/12ad077a
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/12ad077a
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/12ad077a

Branch: refs/heads/branch-2
Commit: 12ad077aa6c3a49440d6970ed2ebc9d2df55029d
Parents: 205fc1f
Author: Wei-Chiu Chuang <weichiu@apache.org>
Authored: Mon Feb 13 10:14:45 2017 -0800
Committer: Wei-Chiu Chuang <weichiu@apache.org>
Committed: Mon Feb 13 10:17:41 2017 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/fs/shell/Stat.java           | 4 ++--
 .../hadoop-common/src/site/markdown/FileSystemShell.md           | 2 +-
 .../hadoop-common/src/test/resources/testConf.xml                | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/12ad077a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Stat.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Stat.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Stat.java
index 42f7843..cf8270e 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Stat.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Stat.java
@@ -33,7 +33,7 @@ import org.apache.hadoop.fs.FileStatus;
  * Format sequences:<br>
  *   %a: Permissions in octal<br>
  *   %A: Permissions in symbolic style<br>
- *   %b: Size of file in blocks<br>
+ *   %b: Size of file in bytes<br>
  *   %F: Type<br>
  *   %g: Group name of owner<br>
  *   %n: Filename<br>
@@ -60,7 +60,7 @@ class Stat extends FsCommand {
     "Print statistics about the file/directory at <path>" + NEWLINE +
     "in the specified format. Format accepts permissions in" + NEWLINE +
     "octal (%a) and symbolic (%A), filesize in" + NEWLINE +
-    "blocks (%b), type (%F), group name of owner (%g)," + NEWLINE +
+    "bytes (%b), type (%F), group name of owner (%g)," + NEWLINE +
     "name (%n), block size (%o), replication (%r), user name" + NEWLINE +
     "of owner (%u), modification date (%y, %Y)." + NEWLINE +
     "%y shows UTC date as \"yyyy-MM-dd HH:mm:ss\" and" + NEWLINE +

http://git-wip-us.apache.org/repos/asf/hadoop/blob/12ad077a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md
index 6cee31d..b1cf92f 100644
--- a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md
+++ b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md
@@ -667,7 +667,7 @@ stat
 
 Usage: `hadoop fs -stat [format] <path> ...`
 
-Print statistics about the file/directory at \<path\> in the specified format. Format
accepts permissions in octal (%a) and symbolic (%A), filesize in blocks (%b), type (%F), group
name of owner (%g), name (%n), block size (%o), replication (%r), user name of owner(%u),
and modification date (%y, %Y). %y shows UTC date as "yyyy-MM-dd HH:mm:ss" and %Y shows milliseconds
since January 1, 1970 UTC. If the format is not specified, %y is used by default.
+Print statistics about the file/directory at \<path\> in the specified format. Format
accepts permissions in octal (%a) and symbolic (%A), filesize in bytes (%b), type (%F), group
name of owner (%g), name (%n), block size (%o), replication (%r), user name of owner(%u),
and modification date (%y, %Y). %y shows UTC date as "yyyy-MM-dd HH:mm:ss" and %Y shows milliseconds
since January 1, 1970 UTC. If the format is not specified, %y is used by default.
 
 Example:
 

http://git-wip-us.apache.org/repos/asf/hadoop/blob/12ad077a/hadoop-common-project/hadoop-common/src/test/resources/testConf.xml
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/test/resources/testConf.xml b/hadoop-common-project/hadoop-common/src/test/resources/testConf.xml
index be8755a..7e66715 100644
--- a/hadoop-common-project/hadoop-common/src/test/resources/testConf.xml
+++ b/hadoop-common-project/hadoop-common/src/test/resources/testConf.xml
@@ -867,7 +867,7 @@
         </comparator>
         <comparator>
           <type>RegexpComparator</type>
-          <expected-output>^( |\t)*blocks \(%b\), type \(%F\), group name of owner
\(%g\),( )*</expected-output>
+          <expected-output>^( |\t)*bytes \(%b\), type \(%F\), group name of owner \(%g\),(
)*</expected-output>
         </comparator>
         <comparator>
           <type>RegexpComparator</type>


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message