hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hairong Kuang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-454) hadoop du optionally behave like unix's du -s
Date Tue, 12 Dec 2006 23:02:23 GMT
    [ http://issues.apache.org/jira/browse/HADOOP-454?page=comments#action_12457933 ] 
            
Hairong Kuang commented on HADOOP-454:
--------------------------------------

I plan to solve the problem by introducing a new command "dus", which prints the total disk
usage for each argument. This solution is aligned to what we have in the dfs shell: "lsr"
for "ls -r" and "rmr" for "rm -r".

A better and a long term solution is to allow options for dfs commands, i.e., supporting "du
-s" instead of "dus". But we need to enhance dfs command arguments parsing to handle options.
Something like common-cli is a good choice.

> hadoop du optionally behave like unix's du -s
> ---------------------------------------------
>
>                 Key: HADOOP-454
>                 URL: http://issues.apache.org/jira/browse/HADOOP-454
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: dfs
>    Affects Versions: 0.5.0
>            Reporter: Marco Nicosia
>         Assigned To: Hairong Kuang
>            Priority: Trivial
>
> In Unix, the user has the option to specify a -s flag:
>      -s      Display an entry for each specified file.  (Equivalent to -d 0)
> Instead of providing data for the subdirectories of the arguments, du prints the total
usage of each argument, without printing subdirectories.
> This is very convenient for those looking to find how much space is used by a particular
branch, without requring them to add up all the sub-usages.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message