You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Stas Oskin <st...@gmail.com> on 2010/06/23 17:49:02 UTC

Re: Getting free and used space

Hi there.

I noticed that function getUsed() is no longer present in Hadoop 0.20.

What are the new functions of getting used and free space in DFS, and are
they working correctly, without any special admin permissions?

Thanks!

Re: Getting free and used space

Posted by Stas Oskin <st...@gmail.com>.
Thanks.

On Wed, Jun 23, 2010 at 7:01 PM, Ted Yu <yu...@gmail.com> wrote:

> Both DFSClient and DistributedFileSystem have this method:
>  public DiskStatus getDiskStatus() throws IOException {
>
> You can obtain usage data from:
>  public static class DiskStatus {
> which is defined in
> src/hdfs/org/apache/hadoop/hdfs/DistributedFileSystem.java
>
> On Wed, Jun 23, 2010 at 8:49 AM, Stas Oskin <st...@gmail.com> wrote:
>
> > Hi there.
> >
> > I noticed that function getUsed() is no longer present in Hadoop 0.20.
> >
> > What are the new functions of getting used and free space in DFS, and are
> > they working correctly, without any special admin permissions?
> >
> > Thanks!
> >
>

Re: Getting free and used space

Posted by Ted Yu <yu...@gmail.com>.
Both DFSClient and DistributedFileSystem have this method:
  public DiskStatus getDiskStatus() throws IOException {

You can obtain usage data from:
  public static class DiskStatus {
which is defined in
src/hdfs/org/apache/hadoop/hdfs/DistributedFileSystem.java

On Wed, Jun 23, 2010 at 8:49 AM, Stas Oskin <st...@gmail.com> wrote:

> Hi there.
>
> I noticed that function getUsed() is no longer present in Hadoop 0.20.
>
> What are the new functions of getting used and free space in DFS, and are
> they working correctly, without any special admin permissions?
>
> Thanks!
>