[
https://issues.apache.org/jira/browse/HADOOP-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571672#action_12571672
]
szetszwo edited comment on HADOOP-2219 at 2/22/08 5:17 PM:
-------------------------------------------------------------------------
Instead of adding an option, how about changing the output to the followings?
{code}
bash-3.2$ ./bin/hadoop fs -du /
Found 3 items
byte file directory
159 1 0 hdfs://host:9000/a.txt
44198 1 0 hdfs://host:9000/build.xml
318 2 2 hdfs://host:9000/user
bash-3.2$ ./bin/hadoop fs -dus /
44675 4 3 /
{code}
was (Author: szetszwo):
Instead of adding a option, how about changing the output as followings?
{code}
bash-3.2$ ./bin/hadoop fs -du /
Found 3 items
byte file directory
159 1 0 hdfs://host:9000/a.txt
44198 1 0 hdfs://host:9000/build.xml
318 2 2 hdfs://host:9000/user
bash-3.2$ ./bin/hadoop fs -dus /
44675 4 3 /
{code}
> du like command to count number of files under a given directory
> ----------------------------------------------------------------
>
> Key: HADOOP-2219
> URL: https://issues.apache.org/jira/browse/HADOOP-2219
> Project: Hadoop Core
> Issue Type: New Feature
> Components: dfs
> Reporter: Koji Noguchi
> Assignee: Tsz Wo (Nicholas), SZE
>
> To keep the total number of files on dfs low, we like the users to be able to
> easily find out how many files each of their directory contain.
> Currently, we only have fsck or dfs -lsr which takes time.
> Can I ask for an option for du to show the total number of files (as well as
> the total size) of a given directory?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.