Example usage for org.apache.hadoop.hdfs.web WebHdfsFileSystem WebHdfsFileSystem

List of usage examples for org.apache.hadoop.hdfs.web WebHdfsFileSystem WebHdfsFileSystem

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.web WebHdfsFileSystem WebHdfsFileSystem.

Prototype

WebHdfsFileSystem

Source Link

Usage

From source file:gobblin.util.filesystem.InstrumentedWebHDFSFileSystem.java

License:Apache License

public InstrumentedWebHDFSFileSystem() {
    super(SCHEME, new WebHdfsFileSystem());
}

From source file:org.apache.carbondata.core.carbon.datastorage.filesystem.AlluxioCarbonFileTest.java

License:Apache License

@Test
public void testForNonDisributedSystem() {
    alluxioCarbonFile = new AlluxioCarbonFile(fileStatus);
    new MockUp<Path>() {
        @Mock//  w w  w.j  a v  a 2  s.com
        public FileSystem getFileSystem(Configuration conf) throws IOException {
            return new WebHdfsFileSystem();
        }

    };
    assertFalse(alluxioCarbonFile.renameForce(fileName));
}

From source file:org.apache.carbondata.core.carbon.datastorage.filesystem.HDFSCarbonFileTest.java

License:Apache License

@Test
public void testForNonDisributedSystem() {
    new HDFSCarbonFile(fileStatus);
    new MockUp<Path>() {
        @Mock/*from   w  ww .  j a va 2s .  c om*/
        public FileSystem getFileSystem(Configuration conf) throws IOException {
            return new WebHdfsFileSystem();
        }

    };
    assertEquals(hdfsCarbonFile.renameForce(fileName), false);
}

From source file:org.apache.carbondata.core.carbon.datastorage.filesystem.ViewFsCarbonFileTest.java

License:Apache License

@Test
public void testForNonDisributedSystem() {
    viewFSCarbonFile = new ViewFSCarbonFile(fileStatus);
    new MockUp<Path>() {
        @Mock/*from  www.j ava  2  s . c o  m*/
        public FileSystem getFileSystem(Configuration conf) throws IOException {
            return new WebHdfsFileSystem();
        }

    };
    assertFalse(viewFSCarbonFile.renameForce(fileName));
}