hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brahma Reddy Battula <brahmareddy.batt...@huawei.com>
Subject RE: how to use ContentSumary
Date Wed, 09 Oct 2013 05:28:33 GMT
Please check the following for same....



DistributedFileSystem dfs=new DistributedFileSystem ();

dfs.initialize(URI.create("hdfs://hacluster"), conf);

DistributedFileSystem dfs = new DistributedFileSystem();

cnSum=dfs.getContentSummary(new Path(dirName));
cnSum.getQuota()
cnSum.getSpaceQuota()
cnSum.getSpaceConsumed()

...

...

...









Note : you need to pass the conf correctly..

________________________________
From: kun yan [yankunhadoop@gmail.com]
Sent: Wednesday, October 09, 2013 10:20 AM
To: user@hadoop.apache.org
Subject: how to use ContentSumary

hi all
In org.apache.hadoop.fs
i found ContentSumary  but i am not sure how to use it.Who can help me ,thanks a lot


--

In the Hadoop world, I am just a novice, explore the entire Hadoop ecosystem, I hope one day
I can contribute their own code

YanBit
yankunhadoop@gmail.com<mailto:yankunhadoop@gmail.com>


Mime
View raw message