use of com.facebook.presto.hive.HadoopDirectoryLister.HadoopFileInfoIterator in project presto by prestodb.
the class TestHiveFileIterator method setup.
@BeforeClass
private void setup() {
hadoopConf = new Configuration();
hadoopConf.set("fs.hdfs.impl", org.apache.hadoop.hdfs.DistributedFileSystem.class.getName());
hadoopConf.set("fs.file.impl", org.apache.hadoop.fs.LocalFileSystem.class.getName());
listDirectoryOperation = path -> {
FileSystem fs = path.getFileSystem(hadoopConf);
return new HadoopFileInfoIterator(fs.listLocatedStatus(path));
};
}
Aggregations