org.apache.hadoop.fs.s3.S3FileSystem Java Examples

The following examples show how to use org.apache.hadoop.fs.s3.S3FileSystem. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestFileSystems.java    From incubator-tajo with Apache License 2.0 5 votes vote down vote up
public TestFileSystems(FileSystem fs) throws IOException {
  conf = new TajoConf();

  if(fs instanceof S3FileSystem){
    conf.set(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, "10");
    fs.initialize(URI.create(fs.getScheme() + ":///"), conf);
  }
  this.fs = fs;
  sm = StorageManagerFactory.getStorageManager(conf);
  testDir = getTestDir(this.fs, TEST_PATH);
}