use of com.qlangtech.tis.hdfs.impl.HdfsFileSystemFactory in project plugins by qlangtech.
the class HdfsFileSystemFactoryTestUtils method getFileSystemFactory.
public static HdfsFileSystemFactory getFileSystemFactory() {
HdfsFileSystemFactory fsFactory = new HdfsFileSystemFactory();
fsFactory.name = FS_NAME;
fsFactory.setHdfsAddress(DEFAULT_HDFS_ADDRESS);
fsFactory.userHostname = true;
fsFactory.setHdfsSiteContent(IOUtils.loadResourceFromClasspath(HdfsFileSystemFactoryTestUtils.class, "hdfs/hdfsSiteContent.xml"));
fsFactory.rootDir = "/user/admin";
return fsFactory;
}
Aggregations