Search in sources :

Example 6 with HetuHdfsFileSystemClient

use of io.hetu.core.filesystem.HetuHdfsFileSystemClient in project hetu-core by openlookeng.

the class TestWindowOperator method getLocalHdfs.

private HetuHdfsFileSystemClient getLocalHdfs() throws IOException {
    Properties properties = new Properties();
    properties.setProperty("fs.client.type", "hdfs");
    properties.setProperty("hdfs.config.resources", "");
    properties.setProperty("hdfs.authentication.type", "NONE");
    return new HetuHdfsFileSystemClient(new HdfsConfig(properties), Paths.get("/tmp/hetu/snapshot/"));
}
Also used : HetuHdfsFileSystemClient(io.hetu.core.filesystem.HetuHdfsFileSystemClient) HdfsConfig(io.hetu.core.filesystem.HdfsConfig) Properties(java.util.Properties)

Aggregations

HetuHdfsFileSystemClient (io.hetu.core.filesystem.HetuHdfsFileSystemClient)6 HdfsConfig (io.hetu.core.filesystem.HdfsConfig)4 Properties (java.util.Properties)4 ImmutableList (com.google.common.collect.ImmutableList)2 InMemoryNodeManager (io.prestosql.metadata.InMemoryNodeManager)2 OperatorAssertion.toMaterializedResult (io.prestosql.operator.OperatorAssertion.toMaterializedResult)2 SnapshotConfig (io.prestosql.snapshot.SnapshotConfig)2 SnapshotUtils (io.prestosql.snapshot.SnapshotUtils)2 Page (io.prestosql.spi.Page)2 PlanNodeId (io.prestosql.spi.plan.PlanNodeId)2 MarkerPage (io.prestosql.spi.snapshot.MarkerPage)2 GenericSpillerFactory (io.prestosql.spiller.GenericSpillerFactory)2 OrderingCompiler (io.prestosql.sql.gen.OrderingCompiler)2 MaterializedResult (io.prestosql.testing.MaterializedResult)2 Path (java.nio.file.Path)2 Test (org.testng.annotations.Test)2 OrderByOperatorFactory (io.prestosql.operator.OrderByOperator.OrderByOperatorFactory)1 WindowOperatorFactory (io.prestosql.operator.WindowOperator.WindowOperatorFactory)1 SortOrder (io.prestosql.spi.block.SortOrder)1