Search in sources :

Example 6 with HdfsFileSystemFactory

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;
}
Also used : HdfsFileSystemFactory(com.qlangtech.tis.hdfs.impl.HdfsFileSystemFactory)

Aggregations

HdfsFileSystemFactory (com.qlangtech.tis.hdfs.impl.HdfsFileSystemFactory)6 ITISFileSystem (com.qlangtech.tis.fs.ITISFileSystem)2 HdfsPath (com.qlangtech.tis.hdfs.impl.HdfsPath)2 DefaultHiveConnGetter (com.qlangtech.tis.hive.DefaultHiveConnGetter)2 IPathInfo (com.qlangtech.tis.fs.IPathInfo)1 TISFSDataOutputStream (com.qlangtech.tis.fs.TISFSDataOutputStream)1 Path (org.apache.hadoop.fs.Path)1