hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinayakumar B (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8545) Add an API to fetch the total file length from a specific path, apart from getting by default from root
Date Wed, 09 Sep 2015 17:58:46 GMT

    [ https://issues.apache.org/jira/browse/HDFS-8545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14737307#comment-14737307
] 

Vinayakumar B commented on HDFS-8545:
-------------------------------------

This Jira is to add overloaded API of getUsed() for a specific path. As current getUsed()
will just take everything.

But, considering current 'hdfs dfs -du -h -s path' displays the underlying disk usage after
replications. but not the files' total length.
We can consider adding a separate command or option to existing 'du' command. This can be
done in separate Jira?

> Add an API to fetch the total file length from a specific path, apart from getting by
default from root
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-8545
>                 URL: https://issues.apache.org/jira/browse/HDFS-8545
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: J.Andreina
>            Assignee: J.Andreina
>            Priority: Minor
>         Attachments: HDFS-8545.1.patch, HDFS-8545.2.patch, HDFS-8545.3.patch, HDFS-8545.4.patch
>
>
> Currently by default in FileSystem#getUsed() returns the total file size from root. 
> It is good to have an api to return the total file size from specified path ,same as
we specify the path in "./hdfs dfs -du -s /path" .



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message