HADOOP-12686. Update FileSystemShell documentation to mention the meaning of each columns of fs -du. Contributed by Daisuke Kobayashi.

(cherry picked from commit 1af2917856)
This commit is contained in:
Akira Ajisaka 2016-01-04 20:33:17 +09:00
parent 6d235f0b91
commit 40b41ac8fc
2 changed files with 7 additions and 0 deletions

View File

@ -383,6 +383,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-12570. HDFS Secure Mode Documentation updates. HADOOP-12570. HDFS Secure Mode Documentation updates.
(Arpit Agarwal via cnauroth) (Arpit Agarwal via cnauroth)
HADOOP-12686. Update FileSystemShell documentation to mention the meaning
of each columns of fs -du. (Daisuke Kobayashi via aajisaka)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-11785. Reduce the number of listStatus operation in distcp HADOOP-11785. Reduce the number of listStatus operation in distcp

View File

@ -251,6 +251,10 @@ Options:
* The -s option will result in an aggregate summary of file lengths being displayed, rather than the individual files. * The -s option will result in an aggregate summary of file lengths being displayed, rather than the individual files.
* The -h option will format file sizes in a "human-readable" fashion (e.g 64.0m instead of 67108864) * The -h option will format file sizes in a "human-readable" fashion (e.g 64.0m instead of 67108864)
The du returns three columns with the following format:
size disk_space_consumed_with_all_replicas full_path_name
Example: Example:
* `hadoop fs -du /user/hadoop/dir1 /user/hadoop/file1 hdfs://nn.example.com/user/hadoop/dir1` * `hadoop fs -du /user/hadoop/dir1 /user/hadoop/file1 hdfs://nn.example.com/user/hadoop/dir1`