Search in sources :

Example 11 with QuotaUsage

use of org.apache.hadoop.fs.QuotaUsage in project hadoop by apache.

the class TestQuota method compareQuotaUsage.

// check the QuotaUsage got from getContentSummary is the same as
// getQuotaUsage
private void compareQuotaUsage(final QuotaUsage fromContentSummary, final FileSystem fileSystem, final Path filePath) throws IOException {
    QuotaUsage quotaUsage = fileSystem.getQuotaUsage(filePath);
    assertEquals(fromContentSummary, quotaUsage);
}
Also used : QuotaUsage(org.apache.hadoop.fs.QuotaUsage)

Aggregations

QuotaUsage (org.apache.hadoop.fs.QuotaUsage)11 FileSystem (org.apache.hadoop.fs.FileSystem)4 DistributedFileSystem (org.apache.hadoop.hdfs.DistributedFileSystem)3 Test (org.junit.Test)3 DFSAdmin (org.apache.hadoop.hdfs.tools.DFSAdmin)2 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)2 IOException (java.io.IOException)1 ContentSummary (org.apache.hadoop.fs.ContentSummary)1 Path (org.apache.hadoop.fs.Path)1 UnresolvedLinkException (org.apache.hadoop.fs.UnresolvedLinkException)1 SnapshotAccessControlException (org.apache.hadoop.hdfs.protocol.SnapshotAccessControlException)1 AccessControlException (org.apache.hadoop.security.AccessControlException)1