use of alluxio.hadoop.HdfsFileInputStream in project alluxio by Alluxio.
the class HdfsFileInputStreamIntegrationTest method before.
@Before
public final void before() throws Exception {
mFileSystem = sLocalAlluxioClusterResource.get().getClient();
FileSystemTestUtils.createByteFile(mFileSystem, IN_MEMORY_FILE, WritePType.CACHE_THROUGH, FILE_LEN);
mInMemInputStream = new HdfsFileInputStream(mFileSystem, new AlluxioURI(IN_MEMORY_FILE), null);
}
use of alluxio.hadoop.HdfsFileInputStream in project alluxio by Alluxio.
the class HdfsFileInputStreamIntegrationTest method createUfsInStream.
private void createUfsInStream(ReadType readType) throws Exception {
InstancedConfiguration conf = new InstancedConfiguration(ServerConfiguration.copyProperties());
conf.set(PropertyKey.USER_FILE_READ_TYPE_DEFAULT, readType.name());
FileSystem fs = FileSystem.Factory.create(conf);
FileSystemTestUtils.createByteFile(fs, UFS_ONLY_FILE, WritePType.THROUGH, FILE_LEN);
mUfsInputStream = new HdfsFileInputStream(fs, new AlluxioURI(UFS_ONLY_FILE), null);
}
Aggregations